自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Lawe的博客

以傲慢的姿态去藐视一切该死的借口~

  • 博客(5)
  • 收藏
  • 关注

原创 【leetcode】6. ZigZag Conversion

QuestionThe string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility) .P     

2016-10-04 11:56:26 296

原创 【leetcode】5. Longest Palindromic Substring

QuestionGiven a string S, find the longest palindromic substring in S. You may assume that the maximum length ofS is 1000, and there exists one unique longest palindromic substring.Example

2016-10-03 13:48:57 330

原创 【leetcode】4. Median of Two Sorted Arrays

QuestionThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Examplenums

2016-10-02 10:58:12 379

原创 【Machine Learning】线性判别分析Python实现(LDA)

本次主要考虑在给定的两类各5000*57样例中,每类中随机抽取1000个样例进行LDA训练,最后拿剩下的样例进行测试,最后输出错误率。关于线性判别分析的原理和推导可见【meachine learning】线性判别分析(LDA),下面给出具体的代码实现。# -*- coding: utf-8 -*-from numpy import *import csvfrom matplotlib

2016-10-01 20:18:43 4466 1

原创 【Machine Learning】线性判别分析(LDA)

        LDA的全称是Linear Discriminant Analysis(线性判别分析),是一种supervised learning,在二分类问题上最早由Fisher提出,所以也叫“Fisher判别分析”。     LDA的原理是:对于给定的训练集,设法将样例投影到一条直线上,使得同类的投影点尽可能接近,异类样例的投影点尽可能远离;在对新样本进行分类时,将其投影

2016-10-01 18:40:08 1775

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除