Skip to content

Comments

UofT-DSI | LCR Assignment 1#1

Closed
ottp613 wants to merge 6 commits intomainfrom
assignment-1
Closed

UofT-DSI | LCR Assignment 1#1
ottp613 wants to merge 6 commits intomainfrom
assignment-1

Conversation

@ottp613
Copy link
Owner

@ottp613 ottp613 commented Dec 15, 2025

UofT-DSI | LCR Assignment 1

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

panda data set, numpy usage, crossvalidation and model testing

What did you learn from the changes you have made?

panda, dataset, data inspection, Standardization and data-splitting, cross-validation, and Model testing

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

BA

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

new syntax, usage, logical

How were these changes tested?

local

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

Checklist

  • I can confirm that my changes are working as intended

Copy link

@PatelVishakh PatelVishakh left a comment

Choose a reason for hiding this comment

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

No Assignment.

Error: "Invalid Notebook The Notebook Does Not Appear to Be Valid JSON"

@ottp613
Copy link
Owner Author

ottp613 commented Dec 20, 2025

@ottp613 ottp613 requested a review from PatelVishakh December 22, 2025 20:40
Copy link

@PatelVishakh PatelVishakh left a comment

Choose a reason for hiding this comment

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

Hi Pavan, I have forwarded this issue to Daniel Razavi who hopefully can help you render your assignment.

Unfortunately, I cannot review it without it rendering (like in python) because in lcr the the output needs to match and that is not checkable without executing it.

Copy link

@danielrazavi danielrazavi left a comment

Choose a reason for hiding this comment

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

I reviewed your Jupyter notebook and found a syntax error on line 266, a missing comma at the end of the line. Adding that comma should fix the issue and allow the notebook to render correctly.

If you are unable to resolve it, you can instead download a fresh copy of the Assignment 1 notebook and copy your answers into it. This should also resolve the rendering problem.

Separately, I left comments throughout the notebook noting some issues in your code. Please review and address those as well.

Due to the number of tiny problems your submission has, I'm requesting for changes to be made.

"outputs": [],
"source": [
"# Your answer here"
"wine_dfshape[0]\n"

Choose a reason for hiding this comment

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

wine_dfshape is not defined.

"outputs": [],
"source": [
"# Your answer here"
"wine_dfshape[1]"

Choose a reason for hiding this comment

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

same issue as before, wine_dfshape is not defined so it doesn't understand what you're trying to access.

"final_knn = KNeighborsClassifier(n_neighbors=best_k)\n",
"final_knn.fit(A_train, B_train)\n",
"B_pred = final_knn.predict(A_test)\n",
"accuracy = accuracy_score(A_test, B_pred)\n",

Choose a reason for hiding this comment

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

Are you sure this is how accuracy_score is supposed to be used?

@ottp613
Copy link
Owner Author

ottp613 commented Jan 11, 2026

@danielrazavi and @PatelVishakh thanks for all the comments. I figured out the error it was since I was using pycharm and forgot to follow the instructions. I redid the whole thing in VS code and have this new PR ready
#2
this should be good to mark now @danielrazavi @PatelVishakh . Thanks

@ottp613
Copy link
Owner Author

ottp613 commented Jan 11, 2026

closing this PR as this is stale now @PatelVishakh @danielrazavi

@ottp613 ottp613 closed this Jan 11, 2026
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.

3 participants