Skip to content

Instantly share code, notes, and snippets.

@AFAgarap
Last active September 29, 2019 05:20
Show Gist options
  • Save AFAgarap/6a47ef9ec39b294a032fc0ab5f3c2683 to your computer and use it in GitHub Desktop.
Save AFAgarap/6a47ef9ec39b294a032fc0ab5f3c2683 to your computer and use it in GitHub Desktop.
model = LeNet(num_classes=10)
model.compile(loss=tf.losses.categorical_crossentropy,
optimizer=tf.optimizers.SGD(learning_rate=1e-1, decay=1e-6, momentum=9e-1),
metrics=['accuracy'])
model.fit(train_dataset,
epochs=60,
validation_data=validation_dataset,
verbose=2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment