Digit Classification

Programming I: Final Project (2024-1)

A first-semester project at UTEC that classifies handwritten digits using the Scikit-Learn Digit dataset.

Linux support badge macOS support badge Windows support badge
Maintainer stiffis badge

Installation

  1. Clone the project
  2. Create a virtual environment in the root directory with: python -m venv env
  3. Activate the virtual environment:
    • Linux/Mac: source env/bin/activate
    • Windows: env\Scripts\activate
  4. Install the dependencies with: pip install -r requirements.txt

Main Commands to Navigate Git Bash

  • Start the local repository: git init
  • Change the address of the folder/directory you are in: cd 'name of the directory'
  • Changes to the previous folder/directory address: cd ...
  • Check the status of the local repository: git status
  • Start tracking files: git add 'filename'
  • Make a screenshot or a save of what has been done so far: git commit -m 'descriptive message'
  • Push the changes to GitHub: git push origin 'name of your branch'
  • Get changes from GitHub: git pull origin 'name of branch'
  • Create new branch: git branch 'name of the branch'
  • Move between branches: git checkout 'name of branch'
  • List of existing branches: git branch
  • Merge branches with the current branch: git merge 'name of branch to be merged'
  • Fetch all branches from the remote repository: git fetch
  • Remove local branch: git branch -d 'name of branch to remove'
  • Remove a branch from GitHub: git push origin --delete 'name of the branch'
  • Show commit history: git log
  • Show the differences between commits: git diff
  • Deactivate the virtual environment: deactivate
  • Add more dependencies to requirements.txt: pip freeze > requirements.txt