convert

fun convert(lossFunctionType: Losses): LossFunction

Converts enum value to sub-class of LossFunction.