Supervised Learning000

  • the process of supervised learning

  given dataset with labels then learn the hypothesis/predict function h: x->y through learning algorithm. When the target variable we try to predict is continuous, we call it regression problem. Whrn the target variable we try to predict is discrete, we call it classification problem.

  •  Linear regression

e.g. prediction of houses' price, give living area x1, number of bedrooms x2

hθ(x) = θ0 + θ1x+ θ2x2 

θi's are parameters/weight value, for simplicity, we can write in vectors as

h(x) = sum(θix)  = θTx

to get parameter θ we define the cost function:

J(θ) = 1/2sum(hθ(x(i)) - y(i))2

    • LMS algorithm
扫描二维码关注公众号,回复: 11213041 查看本文章

 

猜你喜欢

转载自www.cnblogs.com/yuelien/p/12905560.html