TransWikia.com

How do I add this equation?

TeX - LaTeX Asked by BOO1210 on March 30, 2021

This formula

I tried using this, but am not getting the right results

usepackage{dsfont}
...
begin{equation}
    L_G_A_N(G, D_Y, X, Y) = mathds{E}_y_~_P_{data}_(_y_)[log D_Y(y)] + mathds{E}_x_~_P{data}_(_x_)[log(1 - D_Y(G(x)))]
end{equation}

2 Answers

You can do:

[
mathcal{L}_mathrm{GAN}(G,D_Y,X,Y)=mathbb{E}_{y sim p_mathrm{data}(y)}[log D_Y(y)]
+mathbb{E}_{x sim p_mathrm{data}(x)}[log (1-D_Y(G(x)))]
]

enter image description here

Correct answer by AboAmmar on March 30, 2021

If you are using Unicode math font, then you can do this:

$$
  ℒ_{rm GAN}(G, D_Y, X, Y) = ?_{y ∼ p_{rm data}(y)} [log D_Y(y)] + 
                              ?_{x ∼ p_{rm data}(x)} [log(1 − D_Y (G(x))]
$$ 

Answered by wipet on March 30, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP