public static KerasSymbol Logcosh(KerasSymbol y_true, KerasSymbol y_pred) { var x = y_pred - y_true; var _logcosh = x + K.Softplus(-2 * x) - (float)Math.Log(2); return(K.Mean(_logcosh, axis: -1)); }
public static KerasSymbol Softplus(KerasSymbol x) { return(K.Softplus(x)); }