AIML Lab Assignment-1 Set 2
AIML Lab Assignment-1 Set 2
Max. Marks: 2
Objective
To provide hands-on experience to students in implementing and applying linear and polynomial
regression models and evaluating their performance.
Task Instructions
• URL: https://www.statlearning.com/s/Advertising.csv
• Data Exploration
• Data Preparation:
• Split the dataset into training ‘df_train’ and testing ‘df_test’ set.
• Performance Evaluation:
• Evaluate the performance of the implemented model using MSE, RMSE, MAE,
and R2 Score, etc.
• Visualization:
• Plot the regression line for both linear and polynomial regression models to compare
fits visually.