Skip to content

Instantly share code, notes, and snippets.

@kumarvipu1
Last active February 3, 2021 01:38
Show Gist options
  • Save kumarvipu1/90037dee0daa3940b170835ca8b84a93 to your computer and use it in GitHub Desktop.
Save kumarvipu1/90037dee0daa3940b170835ca8b84a93 to your computer and use it in GitHub Desktop.
image classifier part 3
def compile_model(model, optimizer='adam', loss='categorical_crossentropy'):
model.compile(optimizer=optimizer, loss=loss, metrics=["accuracy"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment