Page 1 of 1

Please answer these questions in a Python program in Google Colab with screenshots. The avocado_data.csv can be download

Posted: Fri May 20, 2022 10:44 am
by answerhappygod
Please answer these questions in a Python program in Google
Colab with screenshots.
The avocado_data.csv can be downloaded from this
website https://figshare.com/articles/dataset/a ... v/17696882
Please Answer These Questions In A Python Program In Google Colab With Screenshots The Avocado Data Csv Can Be Download 1
Please Answer These Questions In A Python Program In Google Colab With Screenshots The Avocado Data Csv Can Be Download 1 (321.89 KiB) Viewed 39 times
1. (5 marks) Load the "avocado_data.csv" file in to a pandas DataFrame. The response/target variable is contained in the ‘Price' column, and all other columns are predictors/features. Extract predictors and responses making sure that you include only the columns with numerical values. Scale predictors to have 0 mean and unit variance. Split your data into training and test sets. 2. (5 marks) Plot some predictors versus the price in a way you find the most convenient. Which predictors do you think will be most important? 3. (5 marks) Fit a standard multilinear regression model which uses all the predictors/features. Estimate the R2 and MSE values of your model. 4. (5 marks) Use Lasso regression to create a model which uses only four features. What is the R2 of this simpler model? 5. (10 marks) Open ended question: Using any method you wish, build a avocado price predictor with the best possible predictive power. Credit will be given for for clear coding and comments, creative and rigourous use of methods, and quality of predictions on the test.