robustgp
Robust Gaussian Process Regression Based on Iterative Trimming (ITGP)
The Gaussian process (GP) regression can be severely biased when the data are contaminated by outliers. ITGP is a new robust GP regression algorithm that iteratively trims the most extreme data points. While the new algorithm retains the attractive properties of the standard GP as a nonparametric and flexible regression method, it can greatly improve the model accuracy for contaminated data even in the presence of extreme or abundant outliers. It is also easier to implement compared with previous robust GP variants that rely on approximate inference. Applied to a wide range of experiments with different contamination levels, the proposed method significantly outperforms the standard GP and the popular robust GP variant with the Student-t likelihood in most test cases. In addition, as a practical example in the astrophysical study, we show that this method can precisely determine the main-sequence ridge line in the color-magnitude diagram of star clusters.
Install
pip install robustgp
Dependency:
Quick start
One can start with examples in this notebook.
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
Here gp is a GPy.core.GP object, whose usage is further illustrated here.
-
See the docstring of ITGP for detailed usage and full API.
-
See this notebook for a complete example.
References
-
Algorithm paper: Robust Gaussian Process Regression Based on Iterative Trimming, Zhao-Zhou Li, Lu Li, & Zhengyi Shao, 2020
-
First application: Modeling Unresolved Binaries of Open Clusters in the Color-Magnitude Diagram. I. Method and Application of NGC 3532, Li et al., 2020
License
The MIT License
Metadata
Release files for robustgp 2.1
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 | Actions |
|---|---|---|---|---|
| robustgp-2.1.tar.gz | 5.5 kB | Without provenance | Details for robustgp-2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| robustgp-2.1-py3-none-any.whl | Python 3 | none | any | Details for robustgp-2.1-py3-none-any.whl |
Total release size: 11.4 kB
Release files / robustgp-2.1.tar.gz
| Download URL | robustgp-2.1.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c48a0617584b8a535ea1ac998bb285be488ff46b63afa9e1df8bfd4d0499543a
|
|
BLAKE2b-256 checksum How to use checksums |
ffc7ea3b714f7f6e017d5e5d520f90c58d228da8d0ac4bf5a1fdbba84d1894e8
|
| 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.1-py3-none-any.whl
| Download URL | robustgp-2.1-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6d8897d99fc9efb244a52b1c748c8cb056a8209f020dc73374d9133b93acf2d2
|
|
BLAKE2b-256 checksum How to use checksums |
36b38a23ee5b112d24d84d1f0d6f68ed693b3781f285dc7369f0ca13fe677b8b
|
| 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.1
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.