{"id":15288151,"url":"https://github.com/wardbrian/scikit-stan","last_synced_at":"2026-03-14T21:39:42.020Z","repository":{"id":50529078,"uuid":"500495318","full_name":"WardBrian/scikit-stan","owner":"WardBrian","description":"A sklearn style interface to Stan regression models","archived":false,"fork":false,"pushed_at":"2024-10-14T01:26:51.000Z","size":9941,"stargazers_count":25,"open_issues_count":13,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-15T12:59:25.895Z","etag":null,"topics":["python","scikit-learn","sklearn-compatible","stan"],"latest_commit_sha":null,"homepage":"https://scikit-stan.readthedocs.io/","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/WardBrian.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-06T15:47:00.000Z","updated_at":"2024-07-08T14:14:41.000Z","dependencies_parsed_at":"2023-12-11T16:25:57.145Z","dependency_job_id":"2cc8656c-eb47-4e3a-8dc2-1e6bf93bace2","html_url":"https://github.com/WardBrian/scikit-stan","commit_stats":{"total_commits":227,"total_committers":4,"mean_commits":56.75,"dds":"0.39207048458149785","last_synced_commit":"3b0ba5f8e1a697a5f1e3d358066c0359ea35792d"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WardBrian/scikit-stan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBrian%2Fscikit-stan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBrian%2Fscikit-stan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBrian%2Fscikit-stan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBrian%2Fscikit-stan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WardBrian","download_url":"https://codeload.github.com/WardBrian/scikit-stan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WardBrian%2Fscikit-stan/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264853163,"owners_count":23673578,"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":["python","scikit-learn","sklearn-compatible","stan"],"created_at":"2024-09-30T15:44:24.143Z","updated_at":"2026-03-14T21:39:41.976Z","avatar_url":"https://github.com/WardBrian.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scikit-stan\n\nScikit-Stan is a package of [Stan](https://mc-stan.org/) models wrapped in a\n[Scikit-Learn](https://scikit-learn.org/stable/) style interface.\n\nThis package is currently under active development and should be treated as beta software.\n\nDocumentation is available at https://brianward.dev/scikit-stan/ or on [ReadTheDocs](https://scikit-stan.readthedocs.io/)\n(older versions and PDFs available).\n\n## Installation\n\nPre-compiled wheels for the package are available for MacOS, Windows, and Linux systems via `pip install scikit_stan`.\n\nSource installation requires a working installation of [CmdStan](https://mc-stan.org/docs/cmdstan-guide/index.html).\n\n## Basic usage\n\n```python\nfrom scikit_stan import GLM\n\nm = GLM(family='gamma') # Gamma family distribution with canonical inverse link\nm.fit(X, y) # runs HMC-NUTS\npredictions = m.predict(X) # generates new predictions from fitted model\nscore = m.score(X, y) # computes the R2 score of the fitted model on the data X and observations y\n```\n\n## Attribution\n\nThis package is licensed under the BSD 3-clause license.\n\nIt is inspired by existing packages in the Stan ecosystem like\n[rstanarm](https://github.com/stan-dev/rstanarm).\n\nThis package was initially developed at the Simons Foundation by Alexey Izmailov during\na summer 2022 internship under the mentorship of Brian Ward.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbrian%2Fscikit-stan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwardbrian%2Fscikit-stan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwardbrian%2Fscikit-stan/lists"}