{"id":19879482,"url":"https://github.com/pvlbzn/kot-or-not","last_synced_at":"2025-03-01T02:41:07.994Z","repository":{"id":260192374,"uuid":"103438577","full_name":"pvlbzn/kot-or-not","owner":"pvlbzn","description":"Logistic regression (shallow neural network) which predicts whether input image is a cat or not.","archived":false,"fork":false,"pushed_at":"2017-09-13T19:28:44.000Z","size":2576,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T17:51:27.922Z","etag":null,"topics":["classification-algorithm","image-classification","logistic-regression","machine-learning","neural-network","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/pvlbzn.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":"2017-09-13T18:53:45.000Z","updated_at":"2019-11-05T20:29:13.000Z","dependencies_parsed_at":"2024-10-30T03:52:56.739Z","dependency_job_id":null,"html_url":"https://github.com/pvlbzn/kot-or-not","commit_stats":null,"previous_names":["pvlbzn/kot-or-not"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fkot-or-not","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fkot-or-not/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fkot-or-not/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pvlbzn%2Fkot-or-not/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pvlbzn","download_url":"https://codeload.github.com/pvlbzn/kot-or-not/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241309105,"owners_count":19941724,"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":["classification-algorithm","image-classification","logistic-regression","machine-learning","neural-network","numpy"],"created_at":"2024-11-12T17:08:39.943Z","updated_at":"2025-03-01T02:41:07.967Z","avatar_url":"https://github.com/pvlbzn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Kot or Not\n\nKot or Not (from Russian word Кот, a Cat, wordplay) project is an implementation\nof a [logistic regression](https://en.wikipedia.org/wiki/Logistic_regression)\nalgorithm using `numpy` for matrix arithmetics.\n\nAlgorithm uses [`sigmoid`](https://en.wikipedia.org/wiki/Sigmoid_function)\nfunction, forward and backward propagations as well as vectorization techniques.\n\n\n## Data\n\nCurrent implementation has training set with cardinality 209. Images scaled\ndown to `64 x 64 x 3` and processed as a feature vector `(64 * 64 * 3, 1)`.\n\n\n## Usage\n\n```\nusage: main.py [-h] [-d] [-r] [-i INPUT]\n\nCat or not neural network\n\noptional arguments:\n  -h, --help            show this help message and exit\n  -d, --dump            use model dump\n  -r, --retrain         retrain model\n  -i INPUT, --input INPUT\n                        path to input image\n```\n\nTo classify your image first you need to train a model\n\n```\npython3 main.py -r\n```\n\nThe model will be dumped into a flat text files: `weights` column vector\nand `bias` literal.\n\nAfter training `--dump` can be used together with `--input` image path\n\n```\npython3 main.py -d -i images/moon.jpg\n```\n\nBaby can Moon is certainly a cat, and `kot-or-not` NN things the same.\n\n\n## Roadmap\n\n* Implement a self learning feature from input images\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Fkot-or-not","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpvlbzn%2Fkot-or-not","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpvlbzn%2Fkot-or-not/lists"}