lin_reg not defined - Bikes Assessment

lin_reg=LinearRegression()
lr_mae_scores = -cross_val_score(lin_reg,trainingCols,trainingLabels,cv=10,scoring=“neg_mean_absolute_error”)
display_scores(lr_mae_scores)
lr_mse_scores = np.sqrt(-cross_val_score(lin_reg,trainingCols,trainingLabels,cv=10,scoring=“neg_mean_squared_error” ))
display_scores(lr_mse_scores)

O/p
Scores: [ 66.96340699 80.48809095 113.84704981 93.17230086 76.11197672
96.5220689 133.13798218 158.02254734 158.90195479 127.15674717]
Mean: 110.43241256942201
standard Daviation: 31.426965705295725
Scores: [ 84.63836676 111.12038541 131.88324414 119.16350622 105.17621319
127.72562924 174.97188817 187.31691741 205.60028279 164.30585678]
Mean: 141.1902290118175
standard Daviation: 37.55565075919573

Still gettingerror - " lin_reg not defined"

@nipun_marhatha

This discussion will help you I'm having problem with Assessment Engine. How should I fix?

Hi Abhinav,

i tried this, but still its the same.

please help!

Could you share the URL of the page too?
It seems to be fine on this page: https://cloudxlab.com/assessment/displayslide/2398/end-to-end-project-bikes-assessment-basic-train-and-analyze-the-models-train-linear-regression-model?course_id=73&playlist_id=407