Last active
January 17, 2021 02:50
-
-
Save mkvenkit/83ae7db1e2851adb3ac6510db3d09000 to your computer and use it in GitHub Desktop.
simple_audio_pi NN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
model.compile( | |
optimizer=tf.keras.optimizers.Adam(), | |
loss=tf.keras.losses.SparseCategoricalCrossentropy(from_logits=True), | |
metrics=['accuracy'], | |
) | |
EPOCHS = 10 | |
history = model.fit( | |
train_ds, | |
validation_data=val_ds, | |
epochs=EPOCHS, | |
callbacks=tf.keras.callbacks.EarlyStopping(verbose=1, patience=2), | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment