Skip to main content

Gaussian Process Model Building Interface

Project description

Gumbi: Gaussian Process Model Building Interface

Binder

Overview

Gumbi simplifies the steps needed to build a Gaussian Process model from tabular data. It takes care of shaping, transforming, and standardizing data as necessary while applying best practices and sensible defaults to the construction of the GP model itself. Taking inspiration from popular packages such as Bambi and Seaborn, Gumbi's aim is to allow quick iteration on both model structure and prediction visualization. Gumbi is primarily built on top of PyMC3, though additional support for GPflow is planned.

Quickstart

Read in some data and store it as a Gumbi DataSet:

import gumbi as gmb
import seaborn as sns
cars = sns.load_dataset('mpg').dropna()
ds = gmb.DataSet(cars, outputs=['mpg', 'acceleration'], log_vars=['mpg', 'acceleration', 'weight', 'horsepower', 'displacement'])

Create a Gumbi GP object and fit a model that predicts mpg from horsepower:

gp = gmb.GP(ds)
gp.fit(outputs=['mpg'], continuous_dims=['horsepower']);

Make predictions and plot!

X = gp.prepare_grid()
y = gp.predict_grid()
gmb.ParrayPlotter(X, y).plot()

More complex GPs are also possible, such as correlated multi-input and multi-output systems. See the docs for more examples.

Installation

Via pip

pip install gumbi

Bleeding edge

pip install git+git://github.com/JohnGoertz/Gumbi.git@develop

Local developmenst

  • Clone the repo and navigate to the new directory
    • git clone https://gitlab.com/JohnGoertz/gumbi gumbi
    • cd gumbi
  • Create a new conda environment using mamba
    • conda install mamba
    • mamba install -f dev_environment.yaml
  • Install gumbi via pip in editable/development mode
    • From within the gumbi repo
    • pip install --editable ./
  • To update the gumbi module
    • From within the gumbi repo
    • git pull

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

gumbi-0.1.14.tar.gz (2.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gumbi-0.1.14-py3-none-any.whl (286.5 kB view details)

Uploaded Python 3

File details

Details for the file gumbi-0.1.14.tar.gz.

File metadata

  • Download URL: gumbi-0.1.14.tar.gz
  • Upload date:
  • Size: 2.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for gumbi-0.1.14.tar.gz
Algorithm Hash digest
SHA256 421f77fceb0569871bb579911331a2843b249f48e7c2eb9a65f5af0671aca21c
MD5 ab5e66f96ba396d4258f8c1c631db74c
BLAKE2b-256 b26361a578dce900bdcefbef7969e68aa993cb6d534a392c11ecb9e341232fac

See more details on using hashes here.

File details

Details for the file gumbi-0.1.14-py3-none-any.whl.

File metadata

  • Download URL: gumbi-0.1.14-py3-none-any.whl
  • Upload date:
  • Size: 286.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for gumbi-0.1.14-py3-none-any.whl
Algorithm Hash digest
SHA256 c6420a9375072bd3bc82c3ddbfa03289ab8cd45cb728a42c0fc5990df7328fd9
MD5 48930ffde26ef9f5fffe8232c2766f32
BLAKE2b-256 7141691e6937d5f4c7cb0b36d5ea18a1b9aaddb71cb06c49c1c27ddbaf32cce4

See more details on using hashes here.

Supported by

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