jeffheaton / t81_558_deep_learning

T81-558: Keras - Applications of Deep Neural Networks @Washington University in St. Louis
https://sites.wustl.edu/jeffheaton/t81-558/
Other
5.72k stars 3.03k forks source link

Fixed error in loss function #81

Closed ghost closed 4 years ago

ghost commented 4 years ago

changed cross_entropy = tf.keras.losses.BinaryCrossentropy(from_logits=True) to cross_entropy = tf.keras.losses.BinaryCrossentropy() since the discriminator already has a sigmoid activation function

jeffheaton commented 4 years ago

Thanks! Good catch