前面两篇回归(一)(二)复习了线性回归,以及L1与L2正则——lasso和ridge regression。特别描述了lasso的稀疏性是如何产生的。在本篇中介绍一下和lasso可以产生差不多效果的两种方法:stagewise和LARS...
分类:
其他好文 时间:
2015-04-06 14:15:37
阅读次数:
3088
迪米特法则的简写为 LoD,看清楚中间的那个 o 是小写。迪米特法则也叫做做最少知识原则(Least Knowledge Principle,简称 LKP)说的都是一会事,一个对象应该对其他对象有最少的了解,通俗的讲一 个类对自己需要耦合或者调用的类应该知道的最少,你类内部是怎么复杂、怎么的纠缠不清...
分类:
其他好文 时间:
2015-04-05 20:26:54
阅读次数:
208
概念:LruCache
什么是LruCache?
LruCache实现原理是什么?这两个问题其实可以作为一个问题来回答,知道了什么是 LruCache,就只然而然的知道 LruCache 的实现原理;Lru的全称是Least Recently Used ,近期最少使用的!所以我们可以推断出 LruCache 的实现原理:把近期最少使用的数据从缓存中移除,保留使用最频繁的数据,那具体代码要怎么实现...
分类:
移动开发 时间:
2015-04-05 10:38:44
阅读次数:
470
1、LSB,Least Significant BitLSB是指最低位一个bit的权值,比喻ADC是一把尺子,那LSB则是它的最小刻度。LSB=Vfs/(2^N),Vfs为full scale voltage,N为ADC的分辨率(Resolution)。2、Offset ErrorOffset Er...
分类:
其他好文 时间:
2015-04-03 17:07:28
阅读次数:
312
1 题目:Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array[?2,1,?3,4,?1...
分类:
其他好文 时间:
2015-04-02 22:06:17
阅读次数:
166
迪米特法则(Law of Demeter)又叫作最少知识原则(Least Knowledge Principle 简写LKP),就是说一个对象应当对其他对象有尽可能少的了解,不和陌生人说话。
广义的迪米特法则在类的设计上的体现:
优先考虑将一个类设置成不变类。
尽量降低一个类的访问权限。
谨慎使用Serializable。(不懂)
尽量降低成员的访问权限。...
分类:
其他好文 时间:
2015-04-01 19:58:32
阅读次数:
139
LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations:getandset.get(key)- Get...
分类:
系统相关 时间:
2015-03-31 21:42:12
阅读次数:
167
problem:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous su...
分类:
其他好文 时间:
2015-03-31 18:00:23
阅读次数:
121
错误代码:Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting...
分类:
移动开发 时间:
2015-03-31 12:11:15
阅读次数:
161
题目:
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,?1,2,1] h...
分类:
其他好文 时间:
2015-03-30 23:11:53
阅读次数:
188