Skip to content

Commit

Permalink
Update Part 1 - Introduction to Machine Learning with scikit-learn.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cfiutak1 authored Apr 2, 2019
1 parent 166572d commit 0f29ae1
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Part 1 - Introduction to Machine Learning with scikit-learn.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,12 @@ logistic_model.fit(X_train, Y_train)

And now to test these algorithms:
```
print("Linear Regression accuracy:", str(linear_model.score(X_test, Y_test) * 100) + "%")
print("Logistic Regression accuracy:", str(logistic_model.score(X_test, Y_test) * 100) + "%")
print("Linear Regression accuracy:", linear_model.score(X_test, Y_test) * 100, "%")
print("Logistic Regression accuracy:", logistic_model.score(X_test, Y_test) * 100, "%")
```
 

```
Linear Regression accuracy: 57.76594509083273 %
Logistic Regression accuracy: 94.88320355951056 %
```

0 comments on commit 0f29ae1

Please sign in to comment.