From a4a580f8b0e3b817ad862f8ef7ec1093001bba66 Mon Sep 17 00:00:00 2001 From: Rohan Raj <42442507+rohan1907@users.noreply.github.com> Date: Wed, 19 May 2021 20:25:17 +0530 Subject: [PATCH] Removed multiple imports of same package. --- Web-App/1-Web-App/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/Web-App/1-Web-App/README.md b/Web-App/1-Web-App/README.md index 1f7c2fdd..61abf5e6 100644 --- a/Web-App/1-Web-App/README.md +++ b/Web-App/1-Web-App/README.md @@ -37,8 +37,6 @@ ufos.head() Convert the ufos data to a small dataframe with fresh titles. Check the unique values in the Country field. ```python -from sklearn.preprocessing import LabelEncoder - ufos = pd.DataFrame({'Seconds': ufos['duration (seconds)'], 'Country': ufos['country'],'Latitude': ufos['latitude'],'Longitude': ufos['longitude']}) ufos.Country.unique() @@ -94,7 +92,6 @@ X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_ Finally, train your model using Logistic Regression: ```python -from sklearn.model_selection import train_test_split from sklearn.metrics import accuracy_score, classification_report from sklearn.linear_model import LogisticRegression model = LogisticRegression()