Given an unsorted array, find the maximum difference between the successive elements in its sorted form.
Try to solve it in linear time/space.
Return 0 if the array contains less than 2 elements...
分类:
其他好文 时间:
2014-12-14 10:46:23
阅读次数:
189
分类问题也可以用降维来理解,比如一个D维的数据点x,我们可以采用下面的映射进行线性的降维,y=θTx在计算出y后,就可以选择一个阈值h,来进行分类。正如我们在前面的PCA模型中看到的,降维会有信息的损失,可能会在降维过程中,丢失使数据可分的特征,导致分类的效果不理想。那采用什么样的降维方式,可以尽量...
分类:
其他好文 时间:
2014-12-13 23:16:17
阅读次数:
329
使用theano编写Logistic Regression程序,进行二分类,初学者可以参考。...
分类:
其他好文 时间:
2014-12-13 10:56:30
阅读次数:
292
题目为:
Given an array of integers, every element appears twice except for one. Find that single one.
Note:
Your algorithm should have a linear runtime complexity. Could you implement it without...
分类:
其他好文 时间:
2014-12-12 23:39:44
阅读次数:
473
鉴于自己看了好几次animation,都没有记住缩写时候的顺序,现在先放到这块备忘下animation-duration:动画时长animation-timing-funtion:元素根据时间的推进来改变属性值的变换速率 linear ease ;ease-in ease-out ease-in-o...
分类:
Web程序 时间:
2014-12-09 23:05:39
阅读次数:
234
Given an array of integers, every element appearsthreetimes except for one. Find that single one.Note:Your algorithm should have a linear runtime comp...
分类:
其他好文 时间:
2014-12-09 21:16:31
阅读次数:
184
See the Pen jEWpWm by kujian (@kujian) on CodePen. 1 .room-nav { 2 /* -webkit-animation:roomNavTranslate3d 2s linear infinite; */ 3 -moz...
分类:
Web程序 时间:
2014-12-09 17:41:00
阅读次数:
187
NG的课件1,引出常用的优化方法梯度下降法(gradient descent) 对于 ordinary least squares regression, cost function为 求最小值,意味着求导数为0的位置 考虑只有一个样本 这叫做LMS update rule (Least Mean ...
分类:
其他好文 时间:
2014-12-09 08:11:49
阅读次数:
330
演示:jQuery Easing 动画效果扩展 helloweba jQuery Easing 动画效果扩展 linear swing jswing easeInQuad easeOutQuad ...
分类:
Web程序 时间:
2014-12-08 15:29:17
阅读次数:
161
Cox比例风险回归模型(Cox’s proportional hazards regression model),简称Cox回归模型。该模型由英国统计学家D.R.Cox于1972年提出,主要用于肿瘤和其它慢性病的预后分析,也可用于队列研究的病因探索。h(t/X)=h0(t) exp (β1 X1 + β2 X2 + …… + βp Xp )h0(t): 基准风险函数 即所有变量取零时的t时刻的风险...
分类:
其他好文 时间:
2014-12-08 10:50:43
阅读次数:
165