You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In nn.ts it seems as only quadratic loss is supported in the playground? The definition of the Error class seems to indicate that one could implement the cross-entropy error function rather easy. With target being $t$ and $o$ for output The cross-entropy is given as $$f(o,t) = t\log(o) + (1-t)\log(1-o),$$
where the derivative with respect to $o$ is $$f'(o,t) = \frac{\partial}{\partial o} t\log(o) + (1-t)\log(1-o) = \frac{t}{o} - \frac{1-t}{1-o} = \frac{t-o}{o(1-o)}$$
In this case, is my suggestion below correct?
In the playground.ts script I would then change all references to SQUARE to CROSSENTROPY or make it possible to select the error function by drop-down menu?
The text was updated successfully, but these errors were encountered:
In$t$ and $o$ for
$$f(o,t) = t\log(o) + (1-t)\log(1-o),$$ $o$ is
$$f'(o,t) = \frac{\partial}{\partial o} t\log(o) + (1-t)\log(1-o) = \frac{t}{o} - \frac{1-t}{1-o} = \frac{t-o}{o(1-o)}$$
nn.ts
it seems as only quadratic loss is supported in the playground? The definition of theError
class seems to indicate that one could implement the cross-entropy error function rather easy. Withtarget
beingoutput
The cross-entropy is given aswhere the derivative with respect to
In this case, is my suggestion below correct?
In the
playground.ts
script I would then change all references toSQUARE
toCROSSENTROPY
or make it possible to select the error function by drop-down menu?The text was updated successfully, but these errors were encountered: