个人博客:https://luxialan.com

摘要: Logistic回归模型是引入Logistic函数后对线性回归模型进行的归一化处理:这样处理的结果是输出的结果在[0,1]之内,避免了某个特征影响过大。从概率的角度,我们可以将其理解为某个事件发生的可能性。代价函数为:这个代价函数的推导涉及到极大似然估计,推导如下:整合上面两式:在独立同分布的前提下... 阅读全文
posted @ 2015-01-18 10:50 luxialan 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Sort ColorsGiven an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the or... 阅读全文
posted @ 2015-01-18 09:30 luxialan 阅读(106) 评论(0) 推荐(0) 编辑