Commit ebfe5ce
Add the possibility to give an array-like input for n_comp option in KPLS (#816)
… and test the range of n_dim and choose the best one. It has been
refactored to take into account the advice given by @Paul-Saves.
I added unit tests (some of them are quite long due to the exhaustive
search, so I marked them as
`@unittest.skipIf(int(os.getenv("RUN_SLOW_TESTS", 0)) < 1, "too
slow")`).
I updated the docs with a new example and added some description to the
parameters.
I also added a little safeguard on the number of k_fold min based on the
number of training points:
```python
k_fold = min(4, original_nt)
```
---------
Co-authored-by: Saves Paul <paul.saves@alumni.enac.fr>1 parent ff09068 commit ebfe5ce
6 files changed
Lines changed: 496 additions & 80 deletions
File tree
- doc/_src_docs/surrogate_models/gpr
- smt/surrogate_models
- tests
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
34 | 39 | | |
35 | 40 | | |
36 | 41 | | |
| |||
0 commit comments