I\'m pretty new to Keras and I\'m trying to define my own metric. It calculates concordance index which is a measure for regression problems.
def cindex_scor
Replace len(y_true) with y_true.shape[0]
len(y_true)
y_true.shape[0]
If on an older version of TensorFlow use y_true.get_shape()
y_true.get_shape()