Skip to content

Fix CSV loading and train_test_split label variable#1

Open
harshitrajput2802 wants to merge 1 commit into
coding-stick:mainfrom
harshitrajput2802:fix/mnist-loading
Open

Fix CSV loading and train_test_split label variable#1
harshitrajput2802 wants to merge 1 commit into
coding-stick:mainfrom
harshitrajput2802:fix/mnist-loading

Conversation

@harshitrajput2802

Copy link
Copy Markdown

Summary

This pull request fixes two issues that prevented the project from running correctly.

Changes

  • Removed index_col=0 when reading mnist_mapped.csv in NEURAL2-TORCH.py.

    • This prevents the first pixel column from being interpreted as the DataFrame index, ensuring all 784 input features are loaded.
  • Fixed the variable name in mnist_test.ipynb.

    • Changed label to labels in the train_test_split() call to match the variable defined earlier in the notebook.

Result

These changes resolve runtime errors encountered during dataset loading and preprocessing, allowing the project to run successfully with the generated mnist_mapped.csv.

Testing

  • Generated mnist_mapped.csv using mnist_test.ipynb.
  • Successfully ran NEURAL2-TORCH.py.
  • Verified that the visualization window opens and training starts correctly.

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.

1 participant