convert

fun convert(lossFunctionType: Losses): LossFunction

Converts enum value to subclass of LossFunction.