Skip to content

Stephanie Shishis LCR Assignment-2 Completed#2

Open
StephanieShishis wants to merge 2 commits into
mainfrom
assignment-2
Open

Stephanie Shishis LCR Assignment-2 Completed#2
StephanieShishis wants to merge 2 commits into
mainfrom
assignment-2

Conversation

@StephanieShishis

Copy link
Copy Markdown
Owner

UofT-DSI | LCR - Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)

I added code to assignment 2 which included data inspection, data visualization interpretation, fitting a linear regression model which had multiple variables and using RMSPE to evaluate it.

What did you learn from the changes you have made?

I learned how to properly fit a linear regression model with multiple variables using scikit-learn, I learned how to properly split the data into training and test sets, and then how to predict and evaluate the data using RMPSE.

Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?

I followed the class examples pretty closely to complete this assignment so I did not feel that I used another approach.

Were there any challenges? If so, what issue(s) did you face? How did you overcome it?

Yes, I realized that in the class example we only used one predictor in the model but for this assignment we had multiple variables (predictors) that were being assessed. I had to correctly choose only the numeric predictors which I used select_dtypes() and drop() to ensure the correct columns were chosen. I also forget to accidently include the code to fit the model to the training data after initializing the model. This resulted in an error and I promptly looked back at the notes and fixed it.

How were these changes tested?

I ran each code block to ensure no errors were thrown.

A reference to a related issue in your repository (if applicable)

Checklist

  • [YES] I can confirm that my changes are working as intended

@StephanieShishis StephanieShishis changed the title Stephanie Shishis LCR Assignment-2 Stephanie Shishis LCR Assignment-2 Completed May 3, 2026

@PatelVishakh PatelVishakh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assignment 2: Complete, Great Work!
Suggested changes:
Q2) I) When model year increases on average the MPG goes down.
Vishakh Patel [LS]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants