{"id":26919227,"url":"https://github.com/zeroxjackson/knn-from-csv","last_synced_at":"2025-10-11T21:37:07.677Z","repository":{"id":117743241,"uuid":"234645472","full_name":"zeroxjackson/KNN-from-CSV","owner":"zeroxjackson","description":"Build and save K Nearest Neighbors models from .csv files!","archived":false,"fork":false,"pushed_at":"2020-10-03T20:19:24.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T19:11:35.882Z","etag":null,"topics":["csv","knn","nearest-neighbors-models","prediction-data"],"latest_commit_sha":null,"homepage":null,"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/zeroxjackson.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":"2020-01-17T22:10:17.000Z","updated_at":"2021-04-15T03:35:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"c9e96418-500f-483f-b496-28a717382d4d","html_url":"https://github.com/zeroxjackson/KNN-from-CSV","commit_stats":null,"previous_names":["zeroxjackson/knn-from-csv"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zeroxjackson/KNN-from-CSV","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroxjackson%2FKNN-from-CSV","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroxjackson%2FKNN-from-CSV/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroxjackson%2FKNN-from-CSV/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroxjackson%2FKNN-from-CSV/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zeroxjackson","download_url":"https://codeload.github.com/zeroxjackson/KNN-from-CSV/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zeroxjackson%2FKNN-from-CSV/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008857,"owners_count":26084518,"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-10-11T02:00:06.511Z","response_time":55,"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":["csv","knn","nearest-neighbors-models","prediction-data"],"created_at":"2025-04-01T21:30:47.241Z","updated_at":"2025-10-11T21:37:07.662Z","avatar_url":"https://github.com/zeroxjackson.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Run on Repl.it](https://repl.it/badge/github/jacksonet00/KNN-from-CSV)](https://repl.it/@jacksonet00/KNN-from-CSV)\n# KNN from CSV\nBuild and save K Nearest Neighbors models from .csv files!\n\n## Requirements.\n* Sklearn\n* Pandas\n* Numpy\n\n## Functionality.\nKNN from CSV contains a main program (KNN.py) as well as two subfolders (data and models). When run, this program will allow the user to select a .csv file from the data folder and build a K Nearest Neighbors model of that data which will be stored in the models folder.\n\n## Tutorial: Run the [demo version][1] in your browser.\n* Drag any number of .csv files into the data folder. This file should be 7 columns or less of data and the 7th column should contain the data to be predicted by the model.\n\n* Run the file knn.py\n* The program will ask for the name of the file you would like to model.\n* The program will ask for the portion of the data to be used for testing the model. Ex: A value of 0.1 would partitian 10% of the data for testing the model's accuracy and use the remaining 90% of the data for training the model.\n* The program will ask for the number of neighbors to use for the KNN model.\n* The program will train a model of the data and report the accuracy of the model's predictions (this may be useful for determining if the user should retrain the model with a different number of neighbors or a different test partitian).\n* The user may choose to visualize any number of tests from the accuracy testing.\n* Finally, the user is given the option to save this model to the models folder.\n\n## Loading a saved model.\nThis program allows the user to save a trained model using Python 3's pickle function. Once the model has been saved, it can be opened in Python using the following code:\n\n```python\nimport pickle\n\npickle.open('models\\example-file-name.sav')\n```\n\n## Future updates.\nThis product is currently version 1.0. The following updates and changes will come in future version of KNN from CSV:\n* KNN from CSV will be able to handle .csv files with more than 7 columns.\n\n* The user will be able to select a column to predict (currently this must be the 7th column, although columns 1-6 may be left blank).\n* The prediction visualizer will be able to represent the names given in the .csv file rather than the model's numerical representation fo those values.\n* The user will be able to retrain a model for improved accuracy without rerunning the program.\n\n[1]: \u003chttps://repl.it/@jacksonet00/KNN-from-CSV\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroxjackson%2Fknn-from-csv","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzeroxjackson%2Fknn-from-csv","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzeroxjackson%2Fknn-from-csv/lists"}