ct_segnet/train_utils.py
def calc_jac_acc(y_true, y_pred):
    """Jaccard accuracy or Intersection over Union
    """
    y_pred = np.round(np.copy(y_pred))
    jac_acc = (np.sum(y_pred*y_true) + 1) / (np.sum(y_pred) + np.sum(y_true) - np.sum(y_pred*y_true) + 1)
    return jac_acc
Jaccard accuracy or Intersection over Union
    
Jaccard accuracy or Intersection over Union
Jaccard accuracy or Intersection over Union
def calc_jac_acc(y_true, y_pred):
    y_pred = np.round(np.copy(y_pred))
    jac_acc = (np.sum(y_pred*y_true) + 1) / (np.sum(y_pred) + np.sum(y_true) - np.sum(y_pred*y_true) + 1)
    return jac_acc
def calc_jac_acc ( y_true , y_pred ) : y_pred = np . round ( np . copy ( y_pred ) ) jac_acc = ( np . sum ( y_pred * y_true ) + 1 ) / ( np . sum ( y_pred ) + np . sum ( y_true ) - np . sum ( y_pred * y_true ) + 1 ) return jac_acc
Jaccard accuracy or Intersection over Union
Jaccard accuracy or Intersection over Union
"""Jaccard accuracy or Intersection over Union
    """
y_true
y_pred