Created
October 18, 2020 22:04
-
-
Save negedng/04e033c6c3663633c8fa814cce0b7a32 to your computer and use it in GitHub Desktop.
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
ds2_train = ( | |
ds2_train | |
.shuffle(100000) | |
.batch(32) | |
.prefetch(tf.data.experimental.AUTOTUNE) | |
) | |
ds2_val = ( | |
ds2_val | |
.batch(32) | |
.prefetch(tf.data.experimental.AUTOTUNE) | |
) | |
model = get_model() | |
model.compile("adam", "binary_crossentropy", metrics=["accuracy"]) | |
model.fit(ds2_train, epochs=3, validation_data=ds2_val) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment