机器学习实战(二) – 单变量线性回归
Model and Cost Function
1 模型概述 – Model Representation
To establish notation for future use, we’ll use
- x(i)
denote the “input” variables (living area in this example), also called input features, and - y(i)
denote the “output” or target variable that we are trying to predict (price).
A pair (x(i),y(i)) is called a training example
the dataset that we’ll be using to learn—a list of m training examples (x(i),y(i));i=1,…,m—is called a training set.
the superscript “(i)” in the notation is simply an index
into the training set, and has nothing to do with exponentiation
- X
denote the space of input values - Y
denote the space of output values
In this example
X = Y = R
To describe the supervised learning
problem slightly more formally, our goal is,
given a training set, to learn afunction h : X → Y
so that h(x)
is a “good” predictor for the corresponding value of y.
For historical reasons, this function h
is called a hypothesis
. Seen pictorially, the process is therefore like this
简单的详情了一下数据集的表示方法,并且提出来h(hypothesis),即通过训练得出来的一个假设函数,通过输入x,得出来预测的结果y。并在最后详情了线性回归方程
2
说明
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » 机器学习实战(二) – 单变量线性回归
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是摆设,本站源码仅提供给会员学习使用!
7. 如遇到加密压缩包,请使用360解压,如遇到无法解压的请联系管理员
开心源码网 » 机器学习实战(二) – 单变量线性回归