Exemple #1
0
 public static KerasSymbol SparseCategoricalAccuracy(KerasSymbol y_true, KerasSymbol y_pred)
 {
     return(K.Cast(K.Equal(K.Flatten(y_true), K.Cast(K.Argmax(y_pred, axis: -1), K.FloatX())), K.FloatX()));
 }