forked from SMTorg/smt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GPX surrogate model (SMTorg#530)
* Remove obsolete warning in mixed-integer * Initial wrapper for egobox::Gpx surrogate model (#9) * first version of the test and new class GPX * Implement gpx, add gpx in test_all, add an exemple, and a manual test. * Revert setup change --------- Co-authored-by: Rémi Lafage <[email protected]> * Add extra install for GPX * Add check for egobox install and add options * Rename lowercase * Add missing tests for doc examples * Update doc * Add kpls_dim option * Add Gpx doc * Fix kpls_dim type spec * Comment out learning airfoil parameters example run (too slow!) in doc * Add egobox 0.16 in requirements * Refactor GPX * Add GPX test guard * Update doc --------- Co-authored-by: Antoine-Averland <[email protected]>
- Loading branch information
1 parent
373b7da
commit c7b0d73
Showing
16 changed files
with
458 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
GPX | ||
=== | ||
|
||
`GPX` is a rewrite of Kriging (aka `KRG`) and `KPLS` models of SMT in Rust. | ||
Actually `GPX` is a wrapper of the `Gpx` model from the `egobox` library which is adapted here to the surrogate models API of SMT. | ||
|
||
If you find the performances of the Python implementation (training/prediction time) not sufficient for your use case, | ||
you may want to give `GPX` a try. | ||
|
||
You will need to install the `egobox` extra dependency with the command: `pip install smt[gpx]` | ||
|
||
More information about the `egobox` library can be found in [1]_. | ||
|
||
Limitations | ||
----------- | ||
|
||
* wrt `KRG/KPLS`: `GPX` does not implement mixed integer or hierarchical variables, derivatives, noise handling or KRG sampling. | ||
|
||
* wrt `egobox::Gpx`: `GPX` does not give access to mixture of gaussian processes, does not give access to GP sampling | ||
|
||
|
||
See [2]_ for more information on `egobox::Gpx`. | ||
|
||
|
||
Reference | ||
--------- | ||
|
||
.. [1] `Lafage, R., (2022). egobox, a Rust toolbox for efficient global optimization. Journal of Open Source Software, 7(78), 4737, <https://doi.org/10.21105/joss.04737>`_ | ||
|
||
.. [2] `Tutorial egobox::Gpx <https://github.com/relf/egobox/blob/cf7e50cb23b11fda9dd255c2b29178f6d51c3242/doc/Gpx_Tutorial.ipynb>`_ | ||
|
||
Usage | ||
----- | ||
|
||
Example | ||
^^^^^^^ | ||
|
||
.. embed-test-print-plot :: smt.surrogate_models.tests.test_surrogate_model_examples , Test , test_gpx , 80 | ||
|
||
Options | ||
------- | ||
|
||
.. embed-options-table :: smt.surrogate_models , GPX , options |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.