Skip to content

Instantly share code, notes, and snippets.

@Pratik-Shukla-22
Created October 11, 2022 14:45
Show Gist options
  • Save Pratik-Shukla-22/feb611a68db4f2b9f6d247c3f7ad9a42 to your computer and use it in GitHub Desktop.
Save Pratik-Shukla-22/feb611a68db4f2b9f6d247c3f7ad9a42 to your computer and use it in GitHub Desktop.
#Predicting the values for the testing dataset:
predicted_test = regr.predict(test_x)
predicted_test[0:5]
#Output:
array([[342.05531526],
[220.3853239 ],
[220.3853239 ],
[232.15983919],
[224.31016233]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment