Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 1.11 KB

README.md

File metadata and controls

21 lines (15 loc) · 1.11 KB

gptoolsStan gptools: Python

gptools is a minimal package to publish Stan code for efficient Gaussian process inference. The package can be used with the cmdstanpy interface for Stan in Python.

Getting Started

  1. Install cmdstanpy and cmdstan if you haven't already (see here for details).
  2. Install gptools from PyPI by running pip install gptools-stan from the command line.
  3. Compile your first model.
from cmdstanpy import CmdStanModel
from gptools.stan import get_include

model = CmdStanModel(
  stan_file="path/to/your/model.stan",
  stanc_options={"include-paths": get_include()},
)

For an end-to-end example, see this notebook.