{"id":19186224,"url":"https://github.com/mg52/svmapi","last_synced_at":"2026-05-05T13:33:09.232Z","repository":{"id":97850798,"uuid":"103908476","full_name":"mg52/svmapi","owner":"mg52","description":null,"archived":false,"fork":false,"pushed_at":"2019-11-18T10:51:35.000Z","size":12,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-04T05:30:54.069Z","etag":null,"topics":["flask","machine-learning","mongodb","python","svm-classifier"],"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/mg52.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-18T07:44:21.000Z","updated_at":"2019-11-18T10:51:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"959db255-5fc9-4703-ae0c-5fa2ad4e4eb2","html_url":"https://github.com/mg52/svmapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mg52%2Fsvmapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mg52%2Fsvmapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mg52%2Fsvmapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mg52%2Fsvmapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mg52","download_url":"https://codeload.github.com/mg52/svmapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240261497,"owners_count":19773474,"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":["flask","machine-learning","mongodb","python","svm-classifier"],"created_at":"2024-11-09T11:13:50.621Z","updated_at":"2026-05-05T13:33:09.187Z","avatar_url":"https://github.com/mg52.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# svmapi - Python Support Vector Machine (SVM) API\n\nThis API makes SVM classification using given trained and test data.\n\nI used Flask for REST API, MongoDB to handle API Key and storing train data and scikit-learn for SVM algorithm. Also Heroku is used to publish the API.\n\nAPI Link: https://svmapi.herokuapp.com/\n\nHere is the API Keys that you can use: \"4bfc1e9c9d25f192a2f442e748aac4\", \"12bafb07d521189510289229deadc5\", \"ceeac25e0e7044ec80e7027f827add\"\n\nAlso I can create new unique API Keys for you. If you want you can ask me via using issues. I wish you can create your own unique API key but I am using free tier of MongoDB so the storage is limited.\n\n## Train Data Example:\n\nYou should give train data like this:\n\nx:[[1, 1], [2, 1],[-1, -1.3], [-2, -1]]\n\ny:[1, 1, 2, 2]\n\nand you should give your API Key as 'key'\n\nand make HTTP Post Request like below:\n\nhttps://svmapi.herokuapp.com/train?x=[[1, 1], [2, 1],[-1, -1.3], [-2, -1]]\u0026y=[1, 1, 2, 2]\u0026key=4bfc1e9c9d25f192a2f442e748aac4\n\nSuccess Output: \"Data Trained.\"\n\n## Predict Data Example:\n\nYou should give test data like this:\n\nx=[[1.1, 1.2]]\n\nand you should give your API Key as 'key'\n\nand make HTTP Post Request like below:\n\nhttps://svmapi.herokuapp.com/predict?key=4bfc1e9c9d25f192a2f442e748aac4\u0026x=[[1.1, 1.2]]\n\nWhen it is successful it will return predicted data \"1\"\n\n## Validate API Key:\n\nMake a GET Request like below:\n\nhttps://svmapi.herokuapp.com/validateApiKey/4bfc1e9c9d25f192a2f442e748aac4\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmg52%2Fsvmapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmg52%2Fsvmapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmg52%2Fsvmapi/lists"}