机器学习就是让机器学会自动的找一个函数 学习图谱: 1.regression example appliation estimating the combat power(cp) of a pokemon after evolution. varibles:Xcp ,Xs ,Xhp ,Xw ,Xh model: f(Xcp ,Xs ,Xhp ,Xw ,Xh)=y(cp after evolution) linear model : …
一:单变量线性回归(Linear regression with one variable) 背景:在某城市开办饭馆,我们有这样的数据集ex1data1.txt,第一列代表某个城市的人口,第二列代表在该城市开办饭馆的利润. 我们将数据集显示在可视图,可以看出跟某个线性方程有关,而此数据只有单个变量(某城市人口),故接下来我们就使用单变量线性回归拟合出一条近似满足于上数据的直线. 1,单变量的脚本ex1.m: %% Machine Learning Online Class - Exercise…
Linear Regression with One Variable Model Representation Recall that in *regression problems*, we are taking input variables and trying to map the output onto a *continuous* expected result function. Linear regression with one variable is also known…