public static KerasSymbol SparseTopKCategoricalAccuracy(KerasSymbol y_true, KerasSymbol y_pred) { return(K.Mean(K.InTopK(y_pred, K.Cast(K.Flatten(y_true), "int32"), 5), axis: -1)); }
public static KerasSymbol TopKCategoricalAccuracy(KerasSymbol y_true, KerasSymbol y_pred) { return(K.Mean(K.InTopK(y_pred, K.Argmax(y_true, axis: -1), 5), axis: -1)); }