{"id":21202598,"url":"https://github.com/emso-c/knn-classifier","last_synced_at":"2025-06-29T00:37:26.422Z","repository":{"id":150016411,"uuid":"490028048","full_name":"emso-c/KNN-classifier","owner":"emso-c","description":"A KNN classifier written from scratch","archived":false,"fork":false,"pushed_at":"2022-05-09T16:26:02.000Z","size":512,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T22:31:16.950Z","etag":null,"topics":["benchmark","knn-classification","machine-learning","statistics"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emso-c.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-05-08T18:46:44.000Z","updated_at":"2022-12-28T21:12:07.000Z","dependencies_parsed_at":"2023-04-14T17:06:11.794Z","dependency_job_id":null,"html_url":"https://github.com/emso-c/KNN-classifier","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/emso-c/KNN-classifier","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emso-c%2FKNN-classifier","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emso-c%2FKNN-classifier/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emso-c%2FKNN-classifier/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emso-c%2FKNN-classifier/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emso-c","download_url":"https://codeload.github.com/emso-c/KNN-classifier/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emso-c%2FKNN-classifier/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262518105,"owners_count":23323301,"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","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":["benchmark","knn-classification","machine-learning","statistics"],"created_at":"2024-11-20T20:17:13.617Z","updated_at":"2025-06-29T00:37:26.407Z","avatar_url":"https://github.com/emso-c.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# KNN-classifier\r\n\r\n### A KNN classifier written from scratch with no dependencies except matplotlib for plotting benchmark results.\r\n\r\n#### Benchmarks and examples with various popular datasets can be found inside.\r\n\r\n\r\n## Benchmark results\r\n| Dataset | Data\u003cbr\u003eamount | Observation\u003cbr\u003eamount | Test\u003cbr\u003eratio | k range | best\u003cbr\u003ek | Best\u003cbr\u003eaccuracy | Average\u003cbr\u003eaccuracy | Worst\u003cbr\u003eaccuracy | Distance\u003cbr\u003emetric \r\n| :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |\r\n| Iris | 150 | 10 | .2 | `range(3, 20, 2)` | 5 | 100% | 98.3% | 93.3% | Euclidean |\r\n| Diabetes | 768 | 10 | .2 | `range(3, 20, 2)` | 15 | 81% | 74% | 60% | Euclidean |\r\n| Shutter\u003cbr\u003e\u003csub\u003e(Scaled down to 1%)\u003c/sub\u003e | 434 | 6 | .3 | `range(3, 30, 2)` | 5 | 97.7% | 91.5% | 81% | Euclidean |\r\n| SPECTF heart | 267 | 10 | .2 | `range(3, 20, 2)` | 11 | 87% | 76.4% | 59.3% | Euclidean |\r\n| Abalone\u003cbr\u003e\u003csub\u003e(Scaled down to 40%)\u003c/sub\u003e | 1670 | 19 | .2 | `range(3, 20, 2)` | 19 | 28.1% | 22.3% | 16.5% | Euclidean |\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femso-c%2Fknn-classifier","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femso-c%2Fknn-classifier","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femso-c%2Fknn-classifier/lists"}