{"id":30179790,"url":"https://github.com/detro/mnist-nn-by-hand","last_synced_at":"2025-09-10T05:34:36.289Z","repository":{"id":306833359,"uuid":"1027355312","full_name":"detro/mnist-nn-by-hand","owner":"detro","description":"Learning exercise: training a Neural Network by hand.","archived":false,"fork":false,"pushed_at":"2025-07-27T21:28:08.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-12T06:43:39.525Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/detro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-27T21:13:38.000Z","updated_at":"2025-07-27T21:28:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"a4647868-7a16-4bd0-aa1f-97888cff1a1a","html_url":"https://github.com/detro/mnist-nn-by-hand","commit_stats":null,"previous_names":["detro/mnist-nn-by-hand"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/detro/mnist-nn-by-hand","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detro%2Fmnist-nn-by-hand","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detro%2Fmnist-nn-by-hand/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detro%2Fmnist-nn-by-hand/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detro%2Fmnist-nn-by-hand/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/detro","download_url":"https://codeload.github.com/detro/mnist-nn-by-hand/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/detro%2Fmnist-nn-by-hand/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274417312,"owners_count":25281108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-12T06:22:04.633Z","updated_at":"2025-09-10T05:34:36.274Z","avatar_url":"https://github.com/detro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MNBH - MNIST Neural-Network By Hand\n\nLearning exercise: training a Neural Network by hand. Will use, of course, the most classical of datasets:\nthe [MNIST](https://en.wikipedia.org/wiki/MNIST_database) dataset.\n\nOnce I have a first trained model, I want to apply a few ideas:\n\n* [ ] Apply image transformations to enhance training, and improve scoring\n  * For example, rotation +/- 45 degrees\n* [ ] Train and test with [QMNIST](https://github.com/facebookresearch/qmnist)\n* [ ] Train and test with [EMNIST](https://www.nist.gov/itl/products-and-services/emnist-dataset)\n* [ ] Train and test with [Fashion MNIST](https://www.wikiwand.com/en/articles/Fashion_MNIST)\n\n## Setup\n\nThis repository is based on https://asdf-vm.com/ and https://taskfile.dev/.\nYou will have to install `asdf` or provide the dependencies listed in [`.tool-versions`](./.tool-versions).\n\nIf `asdf` is already installed in your system, please do the following:\n\n```shell\n# Add all necessary plugins to `asdf`\n$ asdf plugin add task\n$ asdf plugin add python\n$ asdf plugin add poetry\n\n# Install tools via `asdf`\n$ asdf install\n\n# Initialize codebase\n$ task init\n```\n\nNow you can use the `task`: tap `TAB` twice to get a list of available commands.\n\n## Usage\n\n### `render_example`\n\n```shell\n# Render a random example digit from MNIST\n$ task render_example\n\n# Render a specific example digit from MNIST\n$ task render_example -- --id 1234\n\n# Help\n$ task render_example -- --help\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eOutput for training image `12345`\u003c/summary\u003e\n  \n```shell\n$ task render_example -- --id 12345\n\n* Data Set: mnist (training) (size: 60000)\n* Image ID: 12345\n* Image Label: 3\n┌────────────────────────────┐\n│                            │\n│                            │\n│                            │\n│                            │\n│                            │\n│              ▒█████▒       │\n│           ░▓████████       │\n│         ░▓██████████▒      │\n│         ▓██████▓▓████      │\n│        ░██████▓  ░▓██░     │\n│        ░█████▓    ▒██░     │\n│         ▒██▒      ▒██      │\n│                  ░███      │\n│                 ▒███▓      │\n│              ░▒████▒       │\n│             ░█████░        │\n│             ▓████▒         │\n│              ████▓         │\n│       ▒       ▒███░        │\n│     ░██       ░███         │\n│     ▒█▓      ░███▓         │\n│     ▓█░    ░▒████░         │\n│     ███▓▓▓▓████▓▒          │\n│     ▒█████████▒            │\n│     ░▓██████▓              │\n│                            │\n│                            │\n│                            │\n└────────────────────────────┘\n```\n\u003c/details\u003e\n\n## Datasets\n\n### Installation\n\n```shell\n$ task dataset.download\n```\n\n### Citations\n\n* Yann LeCun, Courant Institute, NYU Corinna Cortes, Google Labs, New York Christopher J.C. Burges, Microsoft Research, Redmond.\n  MNIST: The MNIST Dataset of handwritten digits\n  * Retrieved from: https://github.com/fgnt/mnist (because official website seems empty now)\n  * Official website: http://yann.lecun.com/\n\n* Cohen, G., Afshar, S., Tapson, J., \u0026 van Schaik, A. (2017).\n  EMNIST: an extension of MNIST to handwritten letters.\n  * Retrieved from: http://arxiv.org/abs/1702.05373.\n  * Official website: https://www.nist.gov/itl/products-and-services/emnist-dataset","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetro%2Fmnist-nn-by-hand","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdetro%2Fmnist-nn-by-hand","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdetro%2Fmnist-nn-by-hand/lists"}