From f7a092d1d6c10aa19bfe07820e46647a111890bc Mon Sep 17 00:00:00 2001 From: jiangzhonglian Date: Tue, 19 Sep 2017 19:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E7=AC=AC8=E7=AB=A0=20?= =?UTF-8?q?=E5=9B=9E=E5=BD=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/8.预测数值型数据:回归.md | 3 ++- src/python/8.PredictiveNumericalDataRegression/regression.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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