Skip to content

Commit 9eccfaa

Browse files
authored
Automatic Regularization Selection (#68)
* doc typo fixes * small typo fixed in inputs tutorial * start regularization euler test case * NullTransformer, ShiftedTransformer * redo TestBaseTransformer, add TestNullTransformer * TestShiftScaleTransformer simplified, uses _TestTransformer * ScaleTransformer implementation and tests, need docs * ShiftTransformer, ShiftScaleTransformer docs * TransformerPipeline * standardize pre __str__()s, update pre api walkthrough * test coverage * refactor ROM.fit to prep for fit_regselect * gridsearch + optimization utility * gridsearch + optimization utility * small tweaks for print formatting * automatic reg selection for nonparametric * rename unfinished Euler example * refactor regselect into base * regularization extra test cases * fix single-input edge cases * small typo in parametric tutorial * add pytest execution clause to all test files * test / fix RegTest classes * test and fix nonparametric regselect * lightly test parametric regselect * option to buffer TimedBlock messages * TikhonovSolver.get_operator_regularizer() * update changelog, version 0.5.8 -> 0.5.9
1 parent 3621507 commit 9eccfaa

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3781
-801
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ html/
5454
*.swp
5555
.markdownlint.json
5656
Notes/
57+
tests/add_endclause.py
58+
docs/use_mathjax_shortcuts.py

docs/_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ sphinx:
9898
"B": "\\mathbf{B}" # input operator
9999
"N": "\\mathbf{N}" # bilinear operator
100100
"v": "\\mathbf{v}" # basis vector
101+
"w": "\\mathbf{w}" # weight vector
101102
"V": "\\mathbf{V}" # generic basis matrix
102103
"W": "\\mathbf{W}" # weight matrix
103104
"Vr": "\\mathbf{V}_{\\!r}" # trial basis matrix

docs/source/api/lstsq.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"source": [
5050
":::{admonition} Example Data\n",
5151
":class: tip\n",
52-
"The examples on this page use data matrices composed of compressed heat flow data from [tutorial 2](../tutorials/heat_equation.ipynb).\n",
52+
"The examples on this page use data matrices composed of compressed heat flow data.\n",
5353
"You can [download the data here](https://github.com/Willcox-Research-Group/rom-operator-inference-Python3/raw/data/lstsq_example.npz) to repeat the demonstration.\n",
5454
":::"
5555
]

docs/source/api/main.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
# `opinf`
22

3-
The `opinf` package containts the following submodules.
3+
The `opinf` package contains the following submodules.
44

55
```{eval-rst}
66
7-
.. currentmodule:: opinf
8-
97
.. autosummary::
108
119
opinf.lift
@@ -20,4 +18,4 @@ The `opinf` package containts the following submodules.
2018
opinf.utils
2119
```
2220

23-
The main namespace also contains the [`ROM`](opinf.roms.ROM) class from {mod}`opinf.roms`.
21+
The main namespace also contains the [`ROM`](opinf.roms.ROM) and [`ParametricROM`](opinf.roms.ParametricROM) classes from {mod}`opinf.roms`.

docs/source/api/missing.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,15 @@ pre.ipynb
2828
:toctree: _autosummaries
2929
:nosignatures:
3030

31-
shift
32-
scale
31+
TransformerTemplate
32+
NullTransformer
33+
ShiftTransformer
34+
ScaleTransformer
3335
ShiftScaleTransformer
36+
TransformerPipeline
3437
TransformerMulti
35-
TransformerTemplate
38+
shift
39+
scale
3640

3741
basis.ipynb
3842
-----------

0 commit comments

Comments
 (0)