In this assignment you will implement linear regression model and evaluate their performance on the California house price data set. (housing.csv) Apply the codes and save them in a seperate .py or .ipynb file DO NOT PUT THE CODE IN YOUR REPORT DOCUMENT, only present your output metrics as well as requested graphs and personal comments in the report. Name the report and code files with surname_studentID_section. You will submit a report and a .py/.ipynb file. Only use the data set version provided with the assignment do not download other versions or use the ready made version in google colab. In the assignment you will do the following: - apply linear regression on each individual numerical feature (drop features : 'ocean_proximity' ‘longitude', 'latitude') - output the coefficients and your self implemented error measures: sum of squared error SSE, mean squared error MSE, use split percentage cross validation with 30% test size and shuffle as True refer to documentations during implementation. In dataset, - report the feature of best performance on each error measure. - plot a graph of each error measure with respect to the feature indicators. - Is there a feature of most importance? state that in your report. Tip: for all work drop 'total_bedrooms' feature as it causes divergence in models. Tip: for inputing individual features to the fit function use: np.array(X_train).reshape(-1,1) which was used in Week3, DO NOT FORGET TO APPLY STANDARD SCALER ON THE FEATURES. # apply linear regression on all numerical feature at once "multivariate linear regression" output coefficients and error measures.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

In this assignment you will implement linear regression model and evaluate their performance on the California house price data set. (housing.csv) Apply the codes and save them in a seperate .py or .ipynb file DO NOT PUT THE CODE IN YOUR REPORT DOCUMENT, only present your output metrics as well as requested graphs and personal comments in the report. Name the report and code files with surname_studentID_section. You will submit a report and a .py/.ipynb file. Only use the data set version provided with the assignment do not download other versions or use the ready made version in google colab. In the assignment you will do the following: - apply linear regression on each individual numerical feature (drop features : 'ocean_proximity' ‘longitude', 'latitude') - output the coefficients and your self implemented error measures: sum of squared error SSE, mean squared error MSE, use split percentage cross validation with 30% test size and shuffle as True refer to documentations during implementation. In dataset, - report the feature of best performance on each error measure. - plot a graph of each error measure with respect to the feature indicators. - Is there a feature of most importance? state that in your report. Tip: for all work drop 'total_bedrooms' feature as it causes divergence in models. Tip: for inputing individual features to the fit function use: np.array(X_train).reshape(-1,1) which was used in Week3, DO NOT FORGET TO APPLY STANDARD SCALER ON THE FEATURES. # apply linear regression on all numerical feature at once "multivariate linear regression" output coefficients and error measures.

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
Time complexity
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education