Skip to main content

No project description provided

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scikit_stan-0.1.1.tar.gz (31.7 kB view hashes)

Uploaded Source

Built Distributions

scikit_stan-0.1.1-py3-none-win_amd64.whl (14.3 MB view hashes)

Uploaded Python 3 Windows x86-64

scikit_stan-0.1.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (13.7 MB view hashes)

Uploaded Python 3 manylinux: glibc 2.17+ x86-64

scikit_stan-0.1.1-py3-none-macosx_10_9_x86_64.whl (7.9 MB view hashes)

Uploaded Python 3 macOS 10.9+ x86-64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page