Skip to content

Commit

Permalink
Document example with less expensive parameters (#580)
Browse files Browse the repository at this point in the history
* Document example with less expensive parameters

The documentation for RMTC uses `num_elements=20`.
In Issue #574, it is shown that the training time is exponential in
`num_elements`.
Hence using copy-paste from the example can blow up the compute time.

Reduce `num_elements` in the example so that users are less likely to
hit this exponential behavior.

* Change the example Python source accordingly

---------

Co-authored-by: relf <[email protected]>
  • Loading branch information
NAThompson and relf authored May 29, 2024
1 parent 91798f0 commit 1dc72e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/_src_docs/surrogate_models/rmts.rst

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def test_rmtc(self):

sm = RMTC(
xlimits=xlimits,
num_elements=20,
num_elements=6,
energy_weight=1e-15,
regularization_weight=0.0,
)
Expand Down

0 comments on commit 1dc72e8

Please sign in to comment.