diff --git a/docs/8.预测数值型数据:回归.md b/docs/8.预测数值型数据:回归.md index 5c29ab47..1e3fe942 100644 --- a/docs/8.预测数值型数据:回归.md +++ b/docs/8.预测数值型数据:回归.md @@ -11,7 +11,7 @@ 回归的目的是预测数值型的目标值。最直接的办法是依据输入写出一个目标值的计算公式。 -假如你想要预测姐姐男友汽车的功率大小,可能会这样计算: +假如你想要预测兰博基尼跑车的功率大小,可能会这样计算: HorsePower = 0.0015 * annualSalary - 0.99 * hoursListeningToPublicRadio @@ -88,6 +88,7 @@ HorsePower = 0.0015 * annualSalary - 0.99 * hoursListeningToPublicRadio 数据格式为: ``` +x 1.000000 0.067732 3.176513 1.000000 0.427810 3.816464 1.000000 0.995731 4.550095 diff --git a/src/python/8.PredictiveNumericalDataRegression/regression.py b/src/python/8.PredictiveNumericalDataRegression/regression.py index 5372cdee..11ea93be 100644 --- a/src/python/8.PredictiveNumericalDataRegression/regression.py +++ b/src/python/8.PredictiveNumericalDataRegression/regression.py @@ -584,9 +584,9 @@ def regression5(): if __name__ == "__main__": - # regression1() + regression1() # regression2() # abaloneTest() # regression3() - regression4() + # regression4() # regression5() \ No newline at end of file