{"id":34073476,"url":"https://github.com/hrolfrc/calf-milp","last_synced_at":"2026-03-10T18:04:27.425Z","repository":{"id":185625259,"uuid":"673819793","full_name":"hrolfrc/calf-milp","owner":"hrolfrc","description":"Milp feature section and hypercube vertex weights inspired by calf ","archived":false,"fork":false,"pushed_at":"2023-08-28T21:30:43.000Z","size":84,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-26T08:59:03.751Z","etag":null,"topics":["classification-algorithm"],"latest_commit_sha":null,"homepage":"https://www.nature.com/articles/s41598-022-09415-2","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hrolfrc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-08-02T13:50:21.000Z","updated_at":"2023-08-06T15:09:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"0daef537-1253-4d67-981c-3ae591508606","html_url":"https://github.com/hrolfrc/calf-milp","commit_stats":null,"previous_names":["hrolfrc/calf-milp"],"tags_count":0,"template":false,"template_full_name":"hrolfrc/sppam","purl":"pkg:github/hrolfrc/calf-milp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrolfrc%2Fcalf-milp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrolfrc%2Fcalf-milp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrolfrc%2Fcalf-milp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrolfrc%2Fcalf-milp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hrolfrc","download_url":"https://codeload.github.com/hrolfrc/calf-milp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hrolfrc%2Fcalf-milp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27723831,"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-12-14T02:00:11.348Z","response_time":56,"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":["classification-algorithm"],"created_at":"2025-12-14T08:55:05.052Z","updated_at":"2025-12-14T08:55:05.774Z","avatar_url":"https://github.com/hrolfrc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Quick Start\n\n\n```python\nfrom calf_milp import CalfMilp\nfrom sklearn.datasets import make_classification\nfrom sklearn.model_selection import train_test_split\n```\n\n#### Make a classification problem\n\n\n```python\nseed = 42\nX, y = make_classification(\n    n_samples=30,\n    n_features=5,\n    n_informative=2,\n    n_redundant=2,\n    n_classes=2,\n    random_state=seed\n)\nX_train, X_test, y_train, y_test = train_test_split(X, y, random_state=seed)\n```\n\n#### Train the classifier \n\n\n```python\ncls = CalfMilp().fit(X_train, y_train)\n```\n\n#### Get the score on unseen data\n\n\n```python\ncls.score(X_test, y_test)\n```\n\n\n\n\n    1.0\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrolfrc%2Fcalf-milp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhrolfrc%2Fcalf-milp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhrolfrc%2Fcalf-milp/lists"}