Skip to content

Commit 4f71b0c

Browse files
committed
fix logisticRegression_scikit-learn.py
1 parent eb27bf9 commit 4f71b0c

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea/
2+
venv/

LogisticRegression/LogisticRegression_scikit-learn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def logisticRegression():
1616

1717
# 归一化
1818
scaler = StandardScaler()
19-
scaler.fit(x_train)
19+
# scaler.fit(x_train)
2020
x_train = scaler.fit_transform(x_train)
2121
x_test = scaler.fit_transform(x_test)
2222

readme.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,6 @@ import numpy as np
313313
```
314314
# 归一化
315315
scaler = StandardScaler()
316-
scaler.fit(x_train)
317316
x_train = scaler.fit_transform(x_train)
318317
x_test = scaler.fit_transform(x_test)
319318
```

0 commit comments

Comments
 (0)