Stephanie Shishis LCR Assignment-2 Completed#2
Open
StephanieShishis wants to merge 2 commits into
Open
Conversation
PatelVishakh
approved these changes
May 6, 2026
PatelVishakh
left a comment
There was a problem hiding this comment.
Assignment 2: Complete, Great Work!
Suggested changes:
Q2) I) When model year increases on average the MPG goes down.
Vishakh Patel [LS]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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