示例#1
0
        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));
        }
示例#2
0
 public static KerasSymbol Softplus(KerasSymbol x)
 {
     return(K.Softplus(x));
 }