Esempio n. 1
0
 public static KerasSymbol CosineProximity(KerasSymbol y_true, KerasSymbol y_pred)
 {
     y_true = K.L2Normalize(y_true, axis: -1);
     y_pred = K.L2Normalize(y_pred, axis: -1);
     return(-K.Sum(y_true * y_pred, axis: -1));
 }