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
- Modeling Unresolved Binaries of Open Clusters in the Color-Magnitude Diagram. I. Method and Application of NGC 3532 https://ui.adsabs.harvard.edu/abs/2020ApJ...901...49L/
Quick start
You can start with examples in this notebook.
Dependency
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
Metadata
Release files for robustgp 2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| robustgp-2.0.tar.gz | 5.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| robustgp-2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / robustgp-2.0.tar.gz
| Download URL | robustgp-2.0.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8a30757cedc3925da55628a64f5d4dc0d55d8f4682255f59309423777711a254
|
|
BLAKE2b-256 checksum How to use checksums |
e02e421a5ab89b7fd778b7c996e12046c5fba726bef22b0071c9845d6b42d0bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / robustgp-2.0-py3-none-any.whl
| Download URL | robustgp-2.0-py3-none-any.whl |
|---|---|
| Size | 5.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5fa10f2cdaa40b3bcbf05f3814ca287332d9c7a2244b135945787099177eeaf
|
|
BLAKE2b-256 checksum How to use checksums |
181b12a6531e44adf0cfd571702e91436c490b8e162cf39bb652fc5b825d53eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for robustgp 2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.