Keras custom metric iteration

前端 未结 3 2043
一整个雨季
一整个雨季 2021-01-18 11:16

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         


        
3条回答
  •  梦谈多话
    2021-01-18 11:41

    Replace len(y_true) with y_true.shape[0]

    If on an older version of TensorFlow use y_true.get_shape()

提交回复
热议问题