摘要: Max Points on a Line题目描述:Given n points on a 2D plane, find the maximum number of points that lie on the same straight line.解题思路:1.首先由这么一个O(n^3)的方法,也就... 阅读全文
posted @ 2014-11-24 13:10 mrbean 阅读(398) 评论(0) 推荐(0) 编辑
摘要: Logistic回归算法优缺点:1.计算代价不高,易于理解和实现2.容易欠拟合,分类精度可能不高3.适用数据类型:数值型和标称型算法思想:其实就我的理解来说,logistic回归实际上就是加了个sigmoid函数的线性回归,这个sigmoid函数的好处就在于,将结果归到了0到1这个区间里面了,并且s... 阅读全文
posted @ 2014-11-24 00:30 mrbean 阅读(15533) 评论(2) 推荐(1) 编辑