Description Usage Arguments Author(s) Examples
Dice coefficient and loss function for the compile of model.
1 2 3 | dice_coef(y_true, y_pred, smooth = 1.0)
bce_dice_loss(y_true, y_pred)
|
y_true |
XXX |
y_pred |
XXX |
smooth |
XXX |
Satoshi Kume
1 2 3 4 5 6 7 8 | ## Not run:
# Compile
model <- model %>%
compile(optimizer = optimizer_rmsprop( lr = 0.01 ),
loss = bce_dice_loss,
metrics = custom_metric( "dice_coef", dice_coef ))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.