ed.util.with_binary_averaging
优质
小牛编辑
128浏览
2023-12-01
with_binary_averaging(metric)
Defined in edward/util/metrics.py
.
Inspired by scikit-learn’s _average_binary_score function: https://github.com/scikit-learn/scikit-learn/blob/d9fdd8b0d1053cb47af8e3823b7a05279dd72054/sklearn/metrics/base.py#L23.
None
: computes the specified metric along the second-to-last dimension of y_true
and y_pred
. Returns a vector of “class-wise” metrics. 'macro'
: same as None
, except compute the (unweighted) global average of the resulting vector. 'micro'
: flatten y_true
and y_pred
into vectors, then compute 'macro'