1.效果
2.代码
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Titletitle>
<script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_HTMLorMML-full">script>
head>
<body>
`
y=ax+b
`
<p style="height: 20px"> p>
`
bar{x} = \frac{x_1+x_2+x_3+···+x_n}{n}=\frac{\sum_{i=1}^nx_i}{n}
`
<p style="height: 20px"> p>
`
T_min=\sum_(i=1)^m(n t_min)
`
<p style="height: 20px"> p>
`
MSE=\frac{1}{M} \sum_(m=1)^M(y_m-hat(y)_m)2
`
<p style="height: 20px"> p>
`
\frac{∂E_(w,b)}{∂w} = 2 (w \sum_(i=1)^m x_i^2 - \sum_(i=1)^m(y_i-b)x_i)
`
<p style="height: 20px"> p>
`
\frac{∂E_(w,b)}{∂b} = 2 (mb - \sum_(i=1)^m(y_i-wx_i))
`
<p style="height: 20px"> p>
`
w = \frac{\sum_(i=1)^m (x_i- \bar{x})}{\sum_(i=1)^m x_i^2 -\frac{1}{m} (\sum_(i=1)^m x_i)^2}
`
<p style="height: 20px"> p>
`
b = \frac{1}{m} \sum_(i=1)^m(y_i -wx_i)
`
<p style="height: 20px"> p>
`
Y = 32.60+0.09X
`
<p style="height: 20px"> p>
`
Y = 7.50+0.21X
`
<p style="height: 20px"> p>
`
T={(x_1,y_1),(x_2,y_2),...,(x_n,y_n)}
`
<p style="height: 20px"> p>
`
Test={(x_1,y_1),(x_2,y_2),...,(x_m,y_m)}
`
<p style="height: 20px"> p>
`
f(x)
`
<p style="height: 20px"> p>
`
hat{y} = { hat{y}_1,hat{y}_2,hat{y}_3,...,hat{y}_m}
`
body>
html>
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87