Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created November 14, 2020 07:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save amankharwal/05aa4413e494e84099c7969dfe304087 to your computer and use it in GitHub Desktop.
Save amankharwal/05aa4413e494e84099c7969dfe304087 to your computer and use it in GitHub Desktop.
score=learner.score(X_test,Y_test)#testing the linear regression model
forecast= learner.predict(X_lately) #set that will contain the forecasted data
response={}#creting json object
response['test_score']=score
response['forecast_set']=forecast
print(response)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment