Notebook[List[Cell[BoxData[FormBox[GridBox[List[List[RowBox[List[RowBox[List["softDiceCoeff", "(", RowBox[List["p", ",", "g"]], ")"]], "=", FractionBox[RowBox[List["2", RowBox[List[SubscriptBox["\[Sum]", "i"], RowBox[List[SubscriptBox["p", "i"], "*", SubscriptBox["g", "i"]]]]]]], RowBox[List[RowBox[List[SubscriptBox["\[Sum]", "i"], SubscriptBox["p", "i"]]], "+", RowBox[List[SubscriptBox["\[Sum]", "i"], SubscriptBox["g", "i"]]]]]]]], TagBox[StyleBox[TagBox[RowBox[List["(", "1", ")"]], Null, Rule[Editable, True], Rule[Selectable, True]], "EquationLabel", Rule[Deletable, False], Rule[ZeroWidthTimes, True]], Null, Rule[Editable, False]]], List[StyleBox["and", Rule[FontSlant, "Plain"]], TagBox[StyleBox[TagBox[" ", Null, Rule[Editable, True], Rule[Selectable, True]], "EquationLabel", Rule[Deletable, False], Rule[ZeroWidthTimes, True]], Null, Rule[Editable, False]]], List[RowBox[List[RowBox[List[StyleBox["Dice", Rule[FontSlant, "Plain"]], " ", StyleBox["Loss", Rule[FontSlant, "Plain"]]]], "=", RowBox[List["1", "-", "softMeanDiceCoeff"]]]], TagBox[StyleBox[TagBox[RowBox[List["(", "2", ")"]], Null, Rule[Editable, True], Rule[Selectable, True]], "EquationLabel", Rule[Deletable, False], Rule[ZeroWidthTimes, True]], Null, Rule[Editable, False]]]], Rule[RowSpacings, 2.], Rule[ColumnWidths, List[Fit, Automatic]], Rule[RowAlignments, Top], Rule[ColumnAlignments, List[TextAlignment, Right]]], TraditionalForm]], "Input"]]]