1.监督学习:由已有的学习算法来进行预测,包括回归和分类
2.无监督学习:无标签的学习行为,不知道分类是否正确以及学习数据中潜在的规则。(如聚类)
监督学习中的训练集包括输入特征(features)和输出目标(targets)
3.监督学习的具体理解:
training set->learning algorithm->f(function)
x(特征)-> f -> y'(预测)
表示为:
成本函数: 画出不同w、b下的J的曲线,找出J最小的时候w和b的值。
4.线性回归模型的表示:
Problem Statement:As in the lecture, you will use the motivating example of housing price prediction.
Size (1000 sqft) | Price (1000s of dollars) |
---|---|
1.0 | 300 |
2.0 | 500 |
This lab will use a simple data set with only two data points - a house with 1000 square feet(sqft) sold for $300,000 and a house with 2000 square feet sold for $500,000. These two points will constitute our data or training set. In this lab, the units of size are 1000 sqft and the units of price are 1000s of dollars.
You would like to fit a linear regression model (shown above as the blue straight line) through these two points, so you can then predict price for other houses - say, a house with 1200 sqft.