Change PODLayer name (#251)
* rename PODBlock * add tutorial rst --------- Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.local> Co-authored-by: Dario Coscia <dariocoscia@Dario-Coscia.lan>
This commit is contained in:
10
tutorials/tutorial8/tutorial.ipynb
vendored
10
tutorials/tutorial8/tutorial.ipynb
vendored
@@ -55,7 +55,7 @@
|
||||
"from pina.geometry import CartesianDomain\n",
|
||||
"\n",
|
||||
"from pina.problem import ParametricProblem\n",
|
||||
"from pina.model.layers import PODLayer\n",
|
||||
"from pina.model.layers import PODBlock\n",
|
||||
"from pina import Condition, LabelTensor, Trainer\n",
|
||||
"from pina.model import FeedForward\n",
|
||||
"from pina.solvers import SupervisedSolver\n",
|
||||
@@ -172,7 +172,7 @@
|
||||
"id": "6b264569-57b3-458d-bb69-8e94fe89017d",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"Then, we define the model we want to use: basically we have a MLP architecture that takes in input the parameter and return the *modal coefficients*, so the reduced dimension representation (the coordinates in the POD space). Such latent variable is the projected to the original space using the POD modes, which are computed and stored in the `PODLayer` object."
|
||||
"Then, we define the model we want to use: basically we have a MLP architecture that takes in input the parameter and return the *modal coefficients*, so the reduced dimension representation (the coordinates in the POD space). Such latent variable is the projected to the original space using the POD modes, which are computed and stored in the `PODBlock` object."
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -193,7 +193,7 @@
|
||||
" \"\"\"\n",
|
||||
" super().__init__()\n",
|
||||
" \n",
|
||||
" self.pod = PODLayer(pod_rank)\n",
|
||||
" self.pod = PODBlock(pod_rank)\n",
|
||||
" self.nn = FeedForward(\n",
|
||||
" input_dimensions=1,\n",
|
||||
" output_dimensions=pod_rank,\n",
|
||||
@@ -216,8 +216,8 @@
|
||||
"\n",
|
||||
" def fit_pod(self, x):\n",
|
||||
" \"\"\"\n",
|
||||
" Just call the :meth:`pina.model.layers.PODLayer.fit` method of the\n",
|
||||
" :attr:`pina.model.layers.PODLayer` attribute.\n",
|
||||
" Just call the :meth:`pina.model.layers.PODBlock.fit` method of the\n",
|
||||
" :attr:`pina.model.layers.PODBlock` attribute.\n",
|
||||
" \"\"\"\n",
|
||||
" self.pod.fit(x)"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user