{"id":30041566,"url":"https://github.com/syrte/robustgp","last_synced_at":"2025-08-07T02:50:04.786Z","repository":{"id":57462524,"uuid":"265328166","full_name":"syrte/robustgp","owner":"syrte","description":"Robust Gaussian Process with Iterative Trimming","archived":false,"fork":false,"pushed_at":"2021-06-13T17:09:47.000Z","size":932,"stargazers_count":23,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-28T19:49:21.839Z","etag":null,"topics":["gaussian-processes","gpy","itgp","machine-learning","nonlinear-regression","outlier-detection","python","regression","robust-regresssion","robust-statistics"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/syrte.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-19T18:19:59.000Z","updated_at":"2025-04-11T10:42:36.000Z","dependencies_parsed_at":"2022-09-12T13:31:32.347Z","dependency_job_id":null,"html_url":"https://github.com/syrte/robustgp","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/syrte/robustgp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syrte%2Frobustgp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syrte%2Frobustgp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syrte%2Frobustgp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syrte%2Frobustgp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/syrte","download_url":"https://codeload.github.com/syrte/robustgp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/syrte%2Frobustgp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269189924,"owners_count":24375571,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gaussian-processes","gpy","itgp","machine-learning","nonlinear-regression","outlier-detection","python","regression","robust-regresssion","robust-statistics"],"created_at":"2025-08-07T02:49:54.232Z","updated_at":"2025-08-07T02:50:04.737Z","avatar_url":"https://github.com/syrte.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# robustgp\n\n[Robust Gaussian Process Regression Based on Iterative Trimming (ITGP)](https://arxiv.org/abs/2011.11057)\n\n- Nonparametric, flexible, and robust nonlinear regression based on Gaussian process.\n- Outperforming the robust Gaussian process with Student’s-t likelihood significantly in many test cases.\n\nThe 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.\n\n\n## Install\n\n```\npip install robustgp\n```\n\nDependency: [GPy](https://github.com/SheffieldML/GPy/)\n\n\n## Quick start\n\nOne can start with examples in [this notebook](https://nbviewer.jupyter.org/github/syrte/robustgp/blob/master/notebook/Example_Neal_Dataset.ipynb).\n\n\n## Usage\n\n```python\nfrom robustgp import ITGP\n\n# train ITGP\nres = ITGP(X, Y, alpha1=0.5, alpha2=0.975, nsh=2, ncc=2, nrw=1)\ngp, consistency = res.gp, res.consistency\n\n# make prediction\ny_avg, y_var = gp.predict(x_new)\ny_var *= consistency\n```\nHere `gp` is a `GPy.core.GP` object, whose usage is further illustrated [here](https://nbviewer.jupyter.org/github/SheffieldML/notebook/blob/master/GPy/basic_gp.ipynb).\n\n- See the [docstring of ITGP](https://github.com/syrte/robustgp/blob/master/robustgp/robustgp.py) for detailed usage and full API.\n\n- See this [notebook](https://github.com/syrte/robustgp/blob/master/notebook/Example_Neal_Dataset.ipynb) for a complete example.\n\n## Benchmark\n\nComparison with standard Gaussian process and t-likelihood Gaussian process in terms of RMSE.\nSee the algorithm paper for details.\n\n\u003c!-- ![Example sample](https://github.com/syrte/robustgp/blob/master/notebook/figure/neal_mock.png) --\u003e\n\n![Benchmark](https://github.com/syrte/robustgp/blob/master/notebook/figure/neal_bench.png)\n\n\n## References\n\n- Algorithm paper:\n  [Robust Gaussian Process Regression Based on Iterative Trimming](https://arxiv.org/abs/2011.11057),\n  Zhao-Zhou Li, Lu Li, \u0026 Zhengyi Shao, 2020\n\n- First application:\n  [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/),\n  Lu Li, Zhengyi Shao, Zhao-Zhou Li, Jincheng Yu, Jing Zhong, \u0026 Li Chen, 2020\n\n## License\n\nThe MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyrte%2Frobustgp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyrte%2Frobustgp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyrte%2Frobustgp/lists"}