From 0f29ae1ebcadaea697ee0ee171e632e0dfeecbb0 Mon Sep 17 00:00:00 2001 From: cfiutak1 Date: Tue, 2 Apr 2019 01:14:22 -0400 Subject: [PATCH] Update Part 1 - Introduction to Machine Learning with scikit-learn.md --- ...troduction to Machine Learning with scikit-learn.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Part 1 - Introduction to Machine Learning with scikit-learn.md b/Part 1 - Introduction to Machine Learning with scikit-learn.md index e703cd6..2b8cb65 100644 --- a/Part 1 - Introduction to Machine Learning with scikit-learn.md +++ b/Part 1 - Introduction to Machine Learning with scikit-learn.md @@ -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 % ```