Atcold / NYU-DLSP20

NYU Deep Learning Spring 2020
https://atcold.github.io/NYU-DLSP20/
Other
6.67k stars 2.22k forks source link

Equation in 01-3.md doesn't render #75

Closed titusjgr closed 4 years ago

titusjgr commented 4 years ago

The Katex code in the markdown file of 01-3 doesn't render.

$$
\label{nonlinear_transform}
    f(x) = tanh\bigg(\begin{bmatrix} s & 0 \\ 0 & s \end{bmatrix} \bigg)
$$
ebetica commented 4 years ago

Should work if you get rid of the \label line.

Atcold commented 4 years ago

Any update, @titusjgr?

titusjgr commented 4 years ago

What was the \label line for?

ebetica commented 4 years ago

In Latex, it's so you can \ref{label_name} in a future section, but I don't see it used anywhere else so the student probably just inserted it by mistake.

titusjgr commented 4 years ago

Some lines are referencing equations using numbers. Should I manually \tag those referenced?

Atcold commented 4 years ago

I confirm that removing the label and adding one empty line before and after the equation gets the equation rendered. So, just go with what currently is done in 01-3.md.

Next, we visualize the following transformation:

$$
f(x) = \tanh\bigg(\begin{bmatrix} s & 0 \\ 0 & s \end{bmatrix} \bigg)
$$

Recall, the graph of $\tanh(\cdot)$ in Fig. 4.
Screenshot 2020-02-29 03 16 28