Skip to content

Commit

Permalink
fix logisticRegression_scikit-learn.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lawlite19 committed Sep 29, 2018
1 parent eb27bf9 commit 4f71b0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
venv/
2 changes: 1 addition & 1 deletion LogisticRegression/LogisticRegression_scikit-learn.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def logisticRegression():

# 归一化
scaler = StandardScaler()
scaler.fit(x_train)
# scaler.fit(x_train)
x_train = scaler.fit_transform(x_train)
x_test = scaler.fit_transform(x_test)

Expand Down
1 change: 0 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,6 @@ import numpy as np
```
# 归一化
scaler = StandardScaler()
scaler.fit(x_train)
x_train = scaler.fit_transform(x_train)
x_test = scaler.fit_transform(x_test)
```
Expand Down

0 comments on commit 4f71b0c

Please sign in to comment.