Skip to content

Commit 5e2f3b9

Browse files
committed
small docs updates
1 parent 4fd0010 commit 5e2f3b9

File tree

13 files changed

+31
-34
lines changed

13 files changed

+31
-34
lines changed

.github/workflows/test_docs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# test_docs.yml
2-
# Build the documentation, the same as would be done locally with `make test`.
2+
# Build the documentation, the same as would be done locally with `make docs`.
33
name: CI-docs
44

55
on:

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ test: lint install
3333

3434

3535
docs:
36-
jupyter-book build docs
36+
jupyter-book build docs -n -W --keep-going
3737

3838

3939
deploy: test docs

docs/_config.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ sphinx:
5050
# MathJax 3 (faster than the default).
5151
mathjax_path: https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js
5252
# language: en
53-
numfig_secnum_depth: 2 # Eq (1.1.1) instead of (1)
53+
numfig_secnum_depth: 1 # Eq (1.1) instead of (1)
54+
bibtex_reference_style: label
55+
# bibtex_default_style: plain # Citations as numbers
5456
extra_extensions:
5557
- sphinx_design
5658
- sphinxcontrib.mermaid

docs/_toc.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ parts:
99
# numbered: 1
1010
chapters:
1111
- file: content/opinf/intro.md
12-
# - file: content/opinf/literature.md
1312
- file: content/opinf/installation.md
13+
# - file: content/opinf/literature.md
1414

1515
# How to use the package.
1616
- caption: Package Usage

docs/content/contributing/code_anatomy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The `pre` module contains all transformer and basis class definitions.
4848
Transformers and bases can be _monolithic_ (treating the state as one variable) or _multivariable_ (treating different chunks of the state as separate variables).
4949
Multivariable transformers and bases inherit from `pre._multivar._MultivarMixin` and should have, as attributes, a list of monolithic counterparts.
5050

51-
Read [Data Normalization](sec-normalization) and [Basis Computation](sec-basis-computation) before starting work here.
51+
Read [Data Scaling](sec-pre-scaling) and [Basis Computation](sec-basis-computation) before starting work here.
5252

5353
(subsec-contrib-transformerclass)=
5454
### Transformer Classes

docs/content/opinf/installation.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
(sec-installation)=
2-
# Installation
2+
# Package Installation
33

44
This page describes how to install `rom_operator_inference` locally.
55

docs/content/opinf/intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ Common preprocessing steps include
153153
2. Centering or shifting data to account for boundary conditions.
154154
3. Scaling / nondimensionalizing the variables represented in the state.
155155
156-
See [Data Normalization](sec-normalization) for details and examples.
156+
See [Data Scaling](sec-pre-scaling) for details and examples.
157157
:::
158158
159159
Operator Inference uses a regression problem to compute the reduced-order operators, which requires state data ($\mathbf{Q}$), input data ($\mathbf{U}$), _and_ data for the corresponding time derivatives:

docs/content/tutorials/basics.ipynb

+2-8
Original file line numberDiff line numberDiff line change
@@ -641,17 +641,11 @@
641641
"cell_type": "markdown",
642642
"metadata": {},
643643
"source": [
644-
":::{tip}\n",
644+
"::::{tip}\n",
645645
"The class `opinf.pre.PODBasis` conveniently combines basis construction and dimension selection. The `fit()` method receives the state matrix $\\mathbf{Q}$ and either the desired reduced dimension $r$ or a threshold value for selecting $r$ based on the cumulative or residual energy.\n",
646646
"\n",
647-
"python```\n",
648-
">>> basis = opinf.pre.PODBasis().fit(Q, r=2)\n",
649-
">>> basis.shape == Vr.shape and np.all(basis.entries == Vr)\n",
650-
"True\n",
651-
"```\n",
652-
"\n",
653647
"The next tutorial uses the `PODBasis` class instead of the `pod_basis()` function.\n",
654-
":::"
648+
"::::"
655649
]
656650
},
657651
{

docs/content/tutorials/gallery.md

-10
This file was deleted.

docs/content/tutorials/heat_equation.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,7 @@
880880
"source": [
881881
":::{admonition} On Convergence\n",
882882
":class: warning\n",
883-
"The figure above conveys a sense of convergence: as the reduced dimension $r$ increases, the ROM error decreases. In more complex problems, **the error does not always decrease monotinically as $r$ increases**. In fact, at some point as $r$ increases performance often deteriorates significantly due to poor conditioning in the operator inference regression. In practice, choose a reduced dimension $r$ that balances solution accuracy with computational speed, not too small but also not too large.\n",
883+
"The figure above conveys a sense of convergence: as the reduced dimension $r$ increases, the ROM error decreases. In more complex problems, **the error does not always decrease monotonically as $r$ increases**. In fact, at some point as $r$ increases performance often deteriorates significantly due to poor conditioning in the operator inference regression. In practice, choose a reduced dimension $r$ that balances solution accuracy with computational speed, not too small but also not too large.\n",
884884
":::"
885885
]
886886
},
@@ -1537,7 +1537,7 @@
15371537
"metadata": {},
15381538
"outputs": [],
15391539
"source": [
1540-
"plot_state_error(15, run_trial_parametric, \"Average relative\\nFrobenius-norm error\")"
1540+
"plot_state_error(14, run_trial_parametric, \"Average relative\\nFrobenius-norm error\")"
15411541
]
15421542
}
15431543
],

docs/content/usage/preprocessing/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Operator Inference learns a reduced-order model that determines the evolution of
2424
This chapter discusses modeling choices for $\boldsymbol{\Gamma}$, the mapping that bridges the latent coordinates and the original state space.
2525
We approach this in two stages.
2626
27-
**Data normalization.**
27+
**Data scaling.**
2828
Raw dynamical systems data often need to be lightly preprocessed before use in Operator Inference.
2929
Common preprocessing steps include
3030
1. Variable transformations / lifting to induce a polynomial structure.

docs/content/usage/preprocessing/transformers.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
(sec-normalization)=
2-
# Data Normalization
1+
(sec-pre-scaling)=
2+
# Data Scaling
33

44
:::{attention}
55
This page is under construction.

docs/references.bib

+15-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
@article{benner2015pmorsurvey,
44
title = {A survey of projection-based model reduction methods for parametric dynamical systems},
5-
author = {Benner, Peter and G{\"u}{\u{g}}ercin, Serkan and Willcox, Karen},
5+
author = {Benner, Peter and Gugercin, Serkan and Willcox, Karen},
66
journal = {SIAM Review},
77
volume = {57},
88
number = {4},
@@ -22,6 +22,17 @@ @article{benner2020opinfdeim
2222
doi = {10.1016/j.cma.2020.113433},
2323
}
2424

25+
@article{ghattas2021learning,
26+
title = {Learning physics-based models from data: perspectives from inverse problems and model reduction},
27+
author = {Ghattas, Omar and Willcox, Karen},
28+
journal = {Acta Numerica},
29+
volume = {30},
30+
pages = {445--554},
31+
year = {2021},
32+
publisher = {Cambridge University Press},
33+
doi = {10.1017/S0962492921000064},
34+
}
35+
2536
@article{halko2011rnla,
2637
title = {Finding structure with randomness: {P}robabilistic algorithms for constructing approximate matrix decompositions},
2738
author = {Halko, Nathan and Martinsson, Per-Gunnar and Tropp, Joel A},
@@ -52,12 +63,12 @@ @article{khodabakhshi2022diffalg
5263
pages = {114296},
5364
year = {2022},
5465
issn = {0045-7825},
55-
doi = {doi.org/10.1016/j.cma.2021.114296},
66+
doi = {10.1016/j.cma.2021.114296},
5667
}
5768

5869
@article{mcquarrie2021combustion,
59-
author = {Shane A. McQuarrie and Cheng Huang and Karen E. Willcox},
6070
title = {Data-driven reduced-order models via regularised Operator Inference for a single-injector combustion process},
71+
author = {Shane A. McQuarrie and Cheng Huang and Karen E. Willcox},
6172
journal = {Journal of the Royal Society of New Zealand},
6273
volume = {51},
6374
number = {2},
@@ -69,7 +80,7 @@ @article{mcquarrie2021combustion
6980

7081
@article{peherstorfer2016opinf,
7182
title = {Data-driven operator inference for nonintrusive projection-based model reduction},
72-
author = {Peherstorfer, B. and Willcox, K.},
83+
author = {Peherstorfer, Benjamin and Willcox, Karen},
7384
journal = {Computer Methods in Applied Mechanics and Engineering},
7485
volume = {306},
7586
pages = {196--215},

0 commit comments

Comments
 (0)