Skip to main content

Robust Gaussian process regression based on iterative trimming.

Project description

robustgp

Robust Gaussian Process Regression Based on Iterative Trimming

Zhao-Zhou Li, Lu Li, Zhengyi Shao, 2020, https://arxiv.org/abs/2011.11057

First application

Quick start

You can start with examples in this notebook.

Dependency

GPy

Install

Install the dependency first

pip install GPy

Assuming you want to put the code at certain directory, say ~/pythonlib

cd ~/pythonlib
wget https://raw.githubusercontent.com/syrte/robustgp/master/robustgp/robustgp.py

Then you can import ITGP as following,

import sys
sys.path.append('~/pythonlib')
from robustgp import ITGP

Or add this in your .bashrc once for all

export PYTHONPATH="$HOME/pythonlib:$PYTHONPATH"

I will write a setup.py in the future for easier installation.

Usage

from robustgp import ITGP

# train ITGP
res = ITGP(X, Y, alpha1=0.5, alpha2=0.975, nsh=2, ncc=2, nrw=1)
gp, consistency = res.gp, res.consistency

# make prediction
y_avg, y_var = gp.predict(x_new)
y_var *= consistency

See this notebook for a complete example.

Here gp is a GPy.core.GP object, whose usage is illustrated here.

License

The MIT License

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

robustgp-2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

robustgp-2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file robustgp-2.0.tar.gz.

File metadata

  • Download URL: robustgp-2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for robustgp-2.0.tar.gz
Algorithm Hash digest
SHA256 8a30757cedc3925da55628a64f5d4dc0d55d8f4682255f59309423777711a254
MD5 1a75143e47bbb6886d1feb86e6f79f44
BLAKE2b-256 e02e421a5ab89b7fd778b7c996e12046c5fba726bef22b0071c9845d6b42d0bf

See more details on using hashes here.

File details

Details for the file robustgp-2.0-py3-none-any.whl.

File metadata

  • Download URL: robustgp-2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.2 pkginfo/1.5.0.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8

File hashes

Hashes for robustgp-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e5fa10f2cdaa40b3bcbf05f3814ca287332d9c7a2244b135945787099177eeaf
MD5 534e07940c513a48b79d72ed156f3438
BLAKE2b-256 181b12a6531e44adf0cfd571702e91436c490b8e162cf39bb652fc5b825d53eb

See more details on using hashes here.

Supported by

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