{"id":26016549,"url":"https://github.com/dkealvaro/mnist","last_synced_at":"2026-05-18T17:02:36.204Z","repository":{"id":280791029,"uuid":"943162773","full_name":"DKeAlvaro/MNIST","owner":"DKeAlvaro","description":"Achieved 75% accuracy in the MNIST dataset using a simple cosine similarity approach under 50 lines of code, with no training","archived":false,"fork":false,"pushed_at":"2025-03-05T09:50:03.000Z","size":29,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-13T15:43:16.032Z","etag":null,"topics":["cosine-similarity","machine-learning","mnist","numpy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DKeAlvaro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-03-05T09:13:07.000Z","updated_at":"2025-04-15T19:08:31.000Z","dependencies_parsed_at":"2025-03-05T10:39:52.599Z","dependency_job_id":"454ac719-aea6-4271-a62b-51d58db6d4d0","html_url":"https://github.com/DKeAlvaro/MNIST","commit_stats":null,"previous_names":["dkealvaro/mnist"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DKeAlvaro/MNIST","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKeAlvaro%2FMNIST","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKeAlvaro%2FMNIST/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKeAlvaro%2FMNIST/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKeAlvaro%2FMNIST/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DKeAlvaro","download_url":"https://codeload.github.com/DKeAlvaro/MNIST/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DKeAlvaro%2FMNIST/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33184769,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"ssl_error","status_checked_at":"2026-05-18T09:27:28.300Z","response_time":71,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cosine-similarity","machine-learning","mnist","numpy"],"created_at":"2025-03-06T04:21:56.524Z","updated_at":"2026-05-18T17:02:36.165Z","avatar_url":"https://github.com/DKeAlvaro.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"text-align: center;\"\u003e\n    \u003cimg src=\"banner.png\" alt=\"Banner\" style=\"max-width: 80%; height: auto;\"\u003e\n\u003c/p\u003e\n\n# MNIST Digit Recognition\n\nAchieved 75% accuracy using a simple cosine similarity approach under 50 lines of code, with no training.\nEach instance from the test set is compared with `num_neighbors` instances of each digit from the training set, and the digit with the highest sum of similarities is predicted. As we can see in the plot below, the accuracy increases with the number of neighbors.\n\n\u003cp style=\"text-align: center;\"\u003e\n    \u003cimg src=\"results.png\" alt=\"Results\" style=\"max-width: 40%; height: auto;\"\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkealvaro%2Fmnist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdkealvaro%2Fmnist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdkealvaro%2Fmnist/lists"}