mirror of
https://github.com/apachecn/ailearning.git
synced 2026-06-30 10:16:12 +08:00
添加前两种回归的测试和注释
This commit is contained in:
@@ -224,6 +224,7 @@ def crossValidation(xArr,yArr,numVal=10):
|
||||
|
||||
|
||||
|
||||
|
||||
#test for standRegression
|
||||
def regression1():
|
||||
xArr, yArr = loadDataSet("../../../testData/Regression_data.txt")
|
||||
@@ -241,6 +242,7 @@ def regression1():
|
||||
|
||||
|
||||
|
||||
|
||||
#test for LWLR
|
||||
def regression2():
|
||||
xArr, yArr = loadDataSet("../../../testData/Regression_data.txt")
|
||||
|
||||
Reference in New Issue
Block a user