Question: You are given a dataset (named real_state) with different house properties (dataset available in Learning Central). Your goal is to train machine learning models in
You are given a dataset (named real_state) with different house properties (dataset available in Learning Central). Your goal is to train machine learning models in the training set to predict the house price of a unit area in the test set. The problem should be framed as both regression and classification. For regression, the house price of a unit area is given; for classification, there would be two labels (expensive and not-expensive) depending on the house price of a unit area: expensive if it is higher or equal to 30, and not-expensive if it is lower than 30.
The task is therefore to train two machine learning models (one regression and another one classification) and check their performance. The student can choose the models to solve this problem. Write, for each of the models, the main Python instructions to train and predict the labels (one line each, no need to include any data preprocessing instructions in the pdf) and the performance in the test set in terms of Root Mean Squared Error (regression) and accuracy (classification). While you will need to write the full code to get to the results, only these instructions are required in the pdf
Real state dataset
The trained set: as train_full_Real-estate.csv in the following link
https://drive.google.com/file/d/1Rljfuqgg9RXxlNSrvs4Pocfn6A5YMfo1/view?usp=share_link
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
