CSS 300 Module 5 Activity Worksheet Use this worksheet to

 CSS 300 Module 5 Activity Worksheet
Use this worksheet to complete your lab activity. Submit it to the applicable assignment
submission folder when complete.
– A word document answering the following questions
Using the Weather.csv dataset from Module 4
Part 1: Metrics for Evaluation
1. Calculate the following metrics: mean absolute error, mean squared error, root mean
squared error, and the R2 score. Use the following code samples:
print(‘Mean Absolute Error:’, metrics.mean_absolute_error(y_test,
print(‘Mean Squared Error:’, metrics.mean_squared_error(y_test,
print(‘Root Mean Squared Error:’,
np.sqrt(metrics.mean_squared_error(y_test, y_pred)))
print(‘R-squared Score:’, regressor.score(X, y))
Part 2: Model Refinement
1. Rerun the linear regression model from Module 4, but change the percentage of records
that are used for testing. Try using 0.25 and 0.3.
2. Calculate the same metrics from above.
3. Use a scatter plot to visualize all three models.
4. Evaluate the three models. Are any of them underfit or overfit? Which % of testing data
performed best? 

Table of Contents

Calculate your order
Pages (275 words)
Standard price: $0.00

Latest Reviews

Impressed with the sample above? Wait there is more

Related Questions

Community Analysis

 Community Analysis: Each student will select a community for analysis. (( want to do my paper on the south side of Chicago)) The analysis should

Report for Health Promotion

-this assignment is in report format, please include executive summary and a very good conclusion -identify and explain the origins of health promotion (extra reading

New questions

Don't Let Questions or Concerns Hold You Back - Make a Free Inquiry Now!