机器学习
McGregorWwww
这个作者很懒,什么都没留下…
展开
-
Machine Learning(Notes of Hung-yi Lee's lessons)
Notes of Machine LearningⅠ.Main stepsStep 1. ModelCreate some functions and put them in a function set. For example, we create these following functions:b: bias w: weighty: predicted output with the...原创 2018-01-19 17:51:45 · 338 阅读 · 0 评论 -
【TensorFlow】tf.nn.max_pool 池化层函数
池化层(pooling) 卷积神经网络中,池化层可以有效缩小矩阵的尺寸,既可以加快计算速度,也可以防止过拟合 常用的池化层有两种:最大池化层(max pooling) 以及 平均池化层(average pooling) 池化层的过滤器与卷积层类似,卷积层的过滤器是横跨整个深度的,而池化层的只影响当前深度的一个节点,所以池化层的过滤器要在长、宽以及深度这三个维度上...原创 2018-04-25 10:50:43 · 1077 阅读 · 0 评论 -
sklearn.cross_validation新版本中的替代方法
问题描述:在sklearn 0.18及以上的版本中,出现了sklearn.cross_validation无法导入的情况,原因是新版本中此包被废弃解决方法:只需将 cross_validation 改为 model_selection 即可,如下:包中的函数仍可继续使用。...原创 2018-10-22 20:01:18 · 29869 阅读 · 10 评论 -
【Python】 pandas学习笔记
Short introduction to pandas 10 Minutes to pandasMore complex recipes in the Cookbook. Operations See the Basic section on Binary Ops. DataFrame Sort Viewing DataData Seletion by...原创 2018-10-22 20:46:57 · 234 阅读 · 0 评论 -
【Python】scikit-learn
Data SetsSupervised Learningk-Nearest Neighbor ClassifierLinear ModelExample -- diabetes datasets If there are few data points per dimension, noise in the observations induces high v...原创 2018-10-24 09:59:05 · 187 阅读 · 0 评论 -
【Python】类与实例
面向对象最重要的概念就是类(Class)和实例(Instance),必须牢记类是抽象的模板,比如Student类,而实例是根据类创建出来的一个个具体的“对象”,每个对象都拥有相同的方法,但各自的数据可能不同。以Student类为例,在Python中,定义类是通过class关键字class Student(object): passclass后面紧接着是类名,即Student,...原创 2018-11-14 20:17:53 · 114 阅读 · 0 评论 -
梯度消失(vanishing gradient)与梯度爆炸(exploding gradient)问题
(1)梯度不稳定问题:什么是梯度不稳定问题:深度神经网络中的梯度不稳定性,前面层中的梯度或会消失,或会爆炸。原因:前面层上的梯度是来自于后面层上梯度的乘乘积。当存在过多的层次时,就出现了内在本质上的不稳定场景,如梯度消失和梯度爆炸。(2)梯度消失(vanishing gradient problem):原因:例如三个隐层、单神经元网络:则可以得到:然而,sigmoid方...转载 2018-11-17 16:12:28 · 254 阅读 · 0 评论