dice_coef: 2D Dice coefficient (F1 score) for single label.

Description Usage Arguments Author(s) Examples

View source: R/dice_2D.R

Description

Dice coefficient and loss function for the compile of model.

Usage

1
2
3
dice_coef(y_true, y_pred, smooth = 1.0)

bce_dice_loss(y_true, y_pred)

Arguments

y_true

XXX

y_pred

XXX

smooth

XXX

Author(s)

Satoshi Kume

Examples

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)

kumeS/rMiW documentation built on Dec. 21, 2021, 8:43 a.m.