摘要:
1.过度拟合overfitting 过度拟合,因为有太多的特征+过少的训练数据,学习到的假设可能很适应训练集,但是不能泛化到新的样例。即泛化generalize能力差。 解决办法: 1.手动/使用选择算法来确定保留的特征。 2.当所有的特征都对结果有一定贡献时,需要正则化,保留所有特征,但是降低θ的 阅读全文
摘要:
1.极大似然估计-逻辑回归代价函数的简化 Andrew Ng的ML视频上讲到:逻辑回归的代价函数可以用最大似然估计法进行简化成上图中第二个式子。 所以学习了一下极大似然估计原理: 2.求偏导 逻辑回归代价函数对θj求偏导,得到手写的部分。手动求解偏导函数如下: 卡住了,还是不太会求,怎么求啊!怎么可 阅读全文
摘要:
Suppose a bank has K windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. All the c 阅读全文
摘要:
A long-distance telephone company charges its customers by the following rules: Making a long-distance call costs a certain amount per minute, dependi 阅读全文
摘要:
A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文