Open
Conversation
PatelVishakh
approved these changes
Dec 18, 2025
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.
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)
Ans: I completed the assignment_2.ipynb notebook: cleaned up the workflow, ran all cells end‑to‑end, and added the required regression analysis, plots, and short interpretations.
What did you learn from the changes you have made?
Ans: This pushed me to get more comfortable fitting and comparing linear regression models, thinking about what the coefficients actually mean, and checking whether the model assumptions show up in the residual plots.
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Ans: I briefly considered adding more complex models (e.g., polynomial terms or regularization), but stayed with the approaches outlined in the assignment so the work stays aligned with the learning goals.
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Ans: I ran into some small issues getting the train/test split and evaluation metric set up correctly, and a couple of shape/type errors in pandas/sklearn; I fixed them by stepping through the code slowly, re‑reading the instructions, and checking the documentation.
How were these changes tested?
Ans: I restarted the kernel and ran the entire notebook from top to bottom to make sure everything executes without errors and that the results/plots look reasonable.
A reference to a related issue in your repository (if applicable)
Ans: N/A
Checklist
Ans: I can confirm that my changes are working as intended