utkd / gans

Various GANs for playing around
35 stars 23 forks source link

loss function #4

Closed gexty444 closed 6 years ago

gexty444 commented 6 years ago

Hello, may I know why is the loss function binary_crossentropy instead of categorical_crossentropy?

utkd commented 6 years ago

It is just a matter of preference. I use binary_crossentropy when I know the number of classes is always 2. Otherwise there is not much of a difference.