Regarding the Syntax in first classification model #616
Unanswered
Chaitanyak-06
asked this question in
Q&A
Replies: 1 comment
-
Try tf.keras.losses.BinaryCrossentropy() |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following is my code... I am not able to figure out what is the error...
import tensorflow as tf
tf.random.set_seed(42)
model_1 = tf.keras.Sequential([
tf.keras.layers.Dense(1)
])
model_1.compile(loss=tf.keras.losses.BinaryCrossentropy,
optimizer=tf.keras.optimizers.SGD(),
metrics=[''accuracy''])
model_1.fit(X, y, epochs=5)
Beta Was this translation helpful? Give feedback.
All reactions