Skip to content

Commit 46f9aa9

Browse files
更新05.Logistic的文件路径
1 parent a1b25f1 commit 46f9aa9

File tree

5 files changed

+1
-103
lines changed

5 files changed

+1
-103
lines changed
File renamed without changes.

src/python/05.Logistic/logistic.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,8 @@ def plotBestFit(dataArr, labelMat, weights):
128128

129129

130130
def main():
131-
# project_dir = os.path.dirname(os.path.dirname(os.getcwd()))
132131
# 1.收集并准备数据
133-
# dataMat, labelMat = loadDataSet("%s/testData/Logistic_testdata.txt" % project_dir)
134-
dataMat, labelMat = loadDataSet("testData/Logistic_testdata.txt")
132+
dataMat, labelMat = loadDataSet("input/05.Logistic/TestSet.txt")
135133

136134
# print dataMat, '---\n', labelMat
137135
# 2.训练模型, f(x)=a1*x1+b2*x2+..+nn*xn中 (a1,b2, .., nn).T的矩阵值

testData/Logistic_testdata.txt

-100
This file was deleted.

0 commit comments

Comments
 (0)