Skip to content

Commit f7a092d

Browse files
更新 第8章 回归
1 parent 7a644ec commit f7a092d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/8.预测数值型数据:回归.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
回归的目的是预测数值型的目标值。最直接的办法是依据输入写出一个目标值的计算公式。
1313

14-
假如你想要预测姐姐男友汽车的功率大小,可能会这样计算:
14+
假如你想要预测兰博基尼跑车的功率大小,可能会这样计算:
1515

1616
HorsePower = 0.0015 * annualSalary - 0.99 * hoursListeningToPublicRadio
1717

@@ -88,6 +88,7 @@ HorsePower = 0.0015 * annualSalary - 0.99 * hoursListeningToPublicRadio
8888
数据格式为:
8989

9090
```
91+
x
9192
1.000000 0.067732 3.176513
9293
1.000000 0.427810 3.816464
9394
1.000000 0.995731 4.550095

src/python/8.PredictiveNumericalDataRegression/regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -584,9 +584,9 @@ def regression5():
584584

585585

586586
if __name__ == "__main__":
587-
# regression1()
587+
regression1()
588588
# regression2()
589589
# abaloneTest()
590590
# regression3()
591-
regression4()
591+
# regression4()
592592
# regression5()

0 commit comments

Comments
 (0)