Skip to content

Instantly share code, notes, and snippets.

@Manikant92
Last active September 4, 2018 09:42
Show Gist options
  • Save Manikant92/7277bbefbd04edbda108cf1280b01d2c to your computer and use it in GitHub Desktop.
Save Manikant92/7277bbefbd04edbda108cf1280b01d2c to your computer and use it in GitHub Desktop.
#X_test is our test set 5 rows-30% percent split. Pass our test data to predict method of algorithm.
y_prediction = lr.predict(X_test)
#print out the results of predictions done by our model.
print(y_prediction)
#output: [ 154. 33. 110. 55. 22.]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment