摘要:
这是书中梯度上升算法的代码,但看到倒数第三行和倒数第二行的时候就懵逼了,书中说这里略去了一个简单的数据推导,嘤嘤嘤,想了一会没想出来,于是乎就百度看看大神的解释,这是找到的一篇解释的比较好的,仔细一看发现是在Ag的机器学习视频中讲过的,忘了。。。 Sigmoid函数: $g(z)=\frac{1}{ 阅读全文
摘要:
pandas两种主要的数据结构:Series和DataFrame Series:类似于一维数组的对象,由一组数据以及一组与之相关的数据标签(即索引)组成。Series中的索引值可以重复 DataFrame:一个表格型的数据结构,包含有一组有序的列,每列可以是不同的值类型(数值、字符串、布尔型等),D 阅读全文
摘要:
1.Numpy核心数据结构:ndarray ndarray是由同一种类型的元素组成的N维数组 1.1 ndarray的创建 主要有以下几个函数进行创建: array() zeros():全零数组 ones():全1数组 empty():创建未初始化的数组 1.1.1通过array()创建 (1)一维 阅读全文
摘要:
The Basics of Decision Trees In this chapter, we describe tree-based methods for regression and classification. These involve stratifying or segmentin 阅读全文
摘要:
Unsupervised learning, a set of statistical tools intended for the setting in which we have only a set of featuresX1,X2, . . . , Xp measured on n obse 阅读全文
摘要:
5.1 Cost Function 假设训练样本为:{(x1),y(1)),(x(2),y(2)),...(x(m),y(m))} L = total no.of layers in network sL= no,of units(not counting bias unit) in layer L 阅读全文
摘要:
In this chapter, we discuss the support vector machine (SVM), an approachfor classification that was developed in the computer science community inthe 阅读全文
摘要:
本章主要介绍几种可替代普通最小二乘拟合的其他一些方法。 Why might we want to use another fitting procedure instead of least squares? better prediction accuracy(预测精度) and better m 阅读全文
摘要:
Resampling methods are an indispensable tool in modern statistics. In this chapter, we discuss two of the most commonly used resampling methods, cross 阅读全文
摘要:
1 Statistical Learning 1.1 What Is Statistical Learning? More generally, suppose that we observe a quantitative response Y and p different predictors, 阅读全文