Skip to content

Instantly share code, notes, and snippets.

@doleron
Created April 9, 2023 12:14
Show Gist options
  • Save doleron/d69b1e1799b01212e85723d28cde102f to your computer and use it in GitHub Desktop.
Save doleron/d69b1e1799b01212e85723d28cde102f to your computer and use it in GitHub Desktop.
model.compile(loss=contrastive_loss_with_margin(margin=1), optimizer=tf.keras.optimizers.RMSprop(),
metrics=[Custom_Accuracy(), Custom_Precision(), Custom_Recall()])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment