Skip to content

Commit 64f4e31

Browse files
committed
fix typos in lgssm_learning.ipynb
1 parent 11c1c9f commit 64f4e31

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/notebooks/linear_gaussian_ssm/lgssm_learning.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"\n",
1111
"This notebook shows how to \"fit\" a linear Gaussian SSM — i.e., estimate the parameters and infer the latent states — using either expectation-maximization (EM) or stochastic gradient descent (SGD) on the negative log marginal likelihood of the data. \n",
1212
"\n",
13-
"Here, we work with simulate noisy data from an LG-SSM with known parameters, and then we see how well we can recover the true parameters and states given the observations. The model is,\n",
13+
"Here, we work with simulated noisy data from an LG-SSM with known parameters, and then we see how well we can recover the true parameters and states given the observations. The model is,\n",
1414
"\\begin{align*}\n",
15-
"z_{t+1} \\mid z_t, \\theta &\\sim \\mathrm{N}(F z_t, Q) \\\\\n",
16-
"y_t \\mid z_t, \\theta &\\sim \\mathrm{N}(H z_t, R)\n",
15+
"z_{t+1} \\mid z_t, \\theta &\\sim \\mathcal{N}(F z_t, Q) \\\\\n",
16+
"y_t \\mid z_t, \\theta &\\sim \\mathcal{N}(H z_t, R)\n",
1717
"\\end{align*}\n",
18-
"where $z_{1:T}$ are the latent states, $y_{1:T}$ are the emissions, and $\\theta = (F, Q, H, R)$ are the model parameters. In particular, $F$ is the dynamics matrix and $H$ is the emission matrix. For our simulation, we use 2-dimensional latent states, $z_t \\in \\mathbb{R}^2$, and 10-dimensional emissions, $y_t \\in \\mathbb{R}^10$. \n",
18+
"where $z_{1:T}$ are the latent states, $y_{1:T}$ are the emissions, and $\\theta = (F, Q, H, R)$ are the model parameters. In particular, $F$ is the dynamics matrix and $H$ is the emission matrix. For our simulation, we use 2-dimensional latent states, $z_t \\in \\mathbb{R}^2$, and 10-dimensional emissions, $y_t \\in \\mathbb{R}^{10}$. \n",
1919
"\n",
20-
"We fit the model to estimate parameters, $\\hat{\\theta}$, using either EM or SGD, as shown below. Once we have estimated the paraemeters, we can also infer the latent states given those parameters.\n"
20+
"We fit the model to estimate parameters, $\\hat{\\theta}$, using either EM or SGD, as shown below. Once we have estimated the parameters, we can also infer the latent states given those parameters.\n"
2121
]
2222
},
2323
{
@@ -542,7 +542,7 @@
542542
"sgd_params, sgd_param_props = model.initialize(\n",
543543
" init_key, dynamics_weights=true_A, dynamics_covariance=true_Sigma)\n",
544544
"\n",
545-
"print(f\"freeing the dynamics matrix to:\\n {sgd_params.dynamics.weights}\")\n",
545+
"print(f\"freezing the dynamics matrix to:\\n {sgd_params.dynamics.weights}\")\n",
546546
"sgd_param_props.dynamics.weights.trainable = False\n",
547547
"sgd_param_props.dynamics.cov.trainable = False\n",
548548
"\n",

0 commit comments

Comments
 (0)