scikit-stan
Scikit-Stan is a package of Stan models wrapped in a Scikit-Learn style interface.
This package is currently under active development and should be treated as beta software.
Documentation is available at https://brianward.dev/scikit-stan/ or on ReadTheDocs (older versions and PDFs available).
Installation
Pre-compiled wheels for the package are available for MacOS, Windows, and Linux systems via pip install scikit_stan.
Source installation requires a working installation of CmdStan.
Basic usage
from scikit_stan import GLM
m = GLM(family='gamma') # Gamma family distribution with canonical inverse link
m.fit(X, y) # runs HMC-NUTS
predictions = m.predict(X) # generates new predictions from fitted model
score = m.score(X, y) # computes the R2 score of the fitted model on the data X and observations y
Attribution
This package is licensed under the BSD 3-clause license.
It is inspired by existing packages in the Stan ecosystem like rstanarm.
This package was initially developed at the Simons Foundation by Alexey Izmailov during a summer 2022 internship under the mentorship of Brian Ward.
Metadata
Release files for scikit-stan 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| scikit_stan-0.1.1.tar.gz | 31.7 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| scikit_stan-0.1.1-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| scikit_stan-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| scikit_stan-0.1.1-py3-none-macosx_10_9_x86_64.whl | Python 3 | none | macOS 10.9+ x86-64 | Details |
Total release size: 36.0 MB
Release files / scikit_stan-0.1.1.tar.gz
| Download URL | scikit_stan-0.1.1.tar.gz |
|---|---|
| Size | 31.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a8816e312bb89b2ae13c6b18cc9c59f2cbd85d21c8f7b7cbedee14b3a1bd685
|
|
BLAKE2b-256 checksum How to use checksums |
884aae5c57d0695b96cf24d8a916830d985cfb5b7aae1e7dd7946ecd3955e8d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / scikit_stan-0.1.1-py3-none-win_amd64.whl
| Download URL | scikit_stan-0.1.1-py3-none-win_amd64.whl |
|---|---|
| Size | 14.3 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8ed0dd0babfd0ffb586d4293fef6d166152c978bd838f7e2376dd60a029fca9d
|
|
BLAKE2b-256 checksum How to use checksums |
1ee16105041374c60e3c3e30a30e2677bf8e6d21ea06f37c74fdf0ffd52eac55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / scikit_stan-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | scikit_stan-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 13.7 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2e2d650376c71d6835e40409a0cd2e5875b7dbd45850a7c7ab7489cad37d9275
|
|
BLAKE2b-256 checksum How to use checksums |
2215e899ab2ff5aacbe39e2b938c7cd70230b02528cea9fbbd6cf764076e0a61
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|
Release files / scikit_stan-0.1.1-py3-none-macosx_10_9_x86_64.whl
| Download URL | scikit_stan-0.1.1-py3-none-macosx_10_9_x86_64.whl |
|---|---|
| Size | 7.9 MB |
| Tags | Python 3 macOS 10.9+ x86-64 |
|
SHA-256 checksum How to use checksums |
ea7e66291e00acae8265b9cb1ff0bd4c2800e1e38b55a2a845bf24b9c476a14c
|
|
BLAKE2b-256 checksum How to use checksums |
fc6c990f6343becb34926ec5c05152cb3b752badbfca39f9fececea0e0d7e500
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.14
|