public static KerasSymbol BinaryAccuracy(KerasSymbol y_true, KerasSymbol y_pred) { return(K.Mean(K.Equal(y_true, K.Round(y_pred)), axis: -1)); }
public static KerasSymbol MultiHotSparseCategoricalAccuracy(KerasSymbol y_true, KerasSymbol y_pred) { return(K.Cast(K.Equal(K.Max(y_true, axis: -1), K.Cast(K.Argmax(y_pred, axis: -1), K.FloatX())), K.FloatX())); }