机器学习课程笔记(二)

机器学习课程笔记(一)

第四课

Multivariate linear regression:

Matrix:

请添加图片描述

Gradient descent:

请添加图片描述
请添加图片描述

Feature scaling:

Between -3 and 3 or -1/3 and 1/3
请添加图片描述

Mean normalization:

purpose: making gadient descent run faster
请添加图片描述

Conform:

cost function J(θ) must decrease after each test
请添加图片描述

Error correction

  1. incesase:

请添加图片描述
Problem: Learning rate is too large or code is wrong
2. circulation:
请添加图片描述
Problem: Learning rate is too large

Polynomial regression:

feature scaling is extremely important
请添加图片描述
set different feature value to fit the data in order to get a better model

Normal equation method

elample:

set derivative equal to zero
请添加图片描述

solution:

请添加图片描述
请添加图片描述
To make clear the derivation process, refer to this piece of passageClick Here
If you use nomal equation method, there is no need to use feature sacling

Comparation

请添加图片描述

猜你喜欢

转载自blog.csdn.net/m0_65591847/article/details/126451779
今日推荐