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/d90703069034323bb37406af56f06f6c to your computer and use it in GitHub Desktop.
Save Pratik-Shukla-22/d90703069034323bb37406af56f06f6c to your computer and use it in GitHub Desktop.
#Predicting values for the whole dataset:
predicted_data = regr.predict(data[["ENGINESIZE"]])
predicted_data[0:5]
#Output:
array([[204.68597017],
[220.3853239 ],
[185.06177802],
[263.55854664],
[263.55854664]])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment