Simple and crude understanding and implementation of machine learning linear regression (III): mathematics: the derivative guide, common functions, derivative of four operations, matrix (vector) derivative

Linear Regression

learning target

  • Ownership in the implementation process of linear regression
  • Application LinearRegression or SGDRegressor achieve regression prediction
  • We know the assessment criteria and formulas regression algorithm
  • Overfitting know the causes and solutions underfitting
  • We know principle ridge regression and linear regression differences
  • Application Ridge achieve regression prediction
  • Application joblib achieve saving and loading models

2.3 Mathematics: derivation

Derivative 1 common functions

[Image dump the chain fails, the source station may have security chain mechanism, it is recommended to save the picture down uploaded directly (img-yVec9jUM-1583244313316) (../ images /% E6% B1% 82% E5% AF% BC% E5 % 85% AC% E5% BC% 8F.png)]

2 four arithmetic derivative

[Image dump the chain fails, the source station may have security chain mechanism, it is recommended to save the picture down uploaded directly (img-5QsaR6Wa-1583244313317) (../ images /% E6% B1% 82% E5% AF% BC% E5 % 9B% 9B% E5% 88% 99% E8% BF% 90% E7% AE% 97.png)]

3 Exercises

  • 3.1 y = x3-2x2+sinx,求f`(x)

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-Z9YEzqjL-1583244313317)(../images/%E6%B1%82%E5%AF%BC%E4%B8%BE%E4%BE%8B1.png)]

  • 3.2 y=ln(sinx), 求dy/dx

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-c1qkXkED-1583244313318)(../images/%E6%B1%82%E5%AF%BC%E4%B8%BE%E4%BE%8B2.png)]

4 matrix (vector) derivative [learn]

[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ON7EHVQc-1583244313318)(../images/%E7%9F%A9%E9%98%B5%E6%B1%82%E5%AF%BC.png)]

Reference Links: https://en.wikipedia.org/wiki/Matrix_calculus#Scalar-by-vector_identities

Published 596 original articles · won praise 790 · Views 100,000 +

Guess you like

Origin blog.csdn.net/qq_35456045/article/details/104642972