mirror of
https://github.com/twitter/the-algorithm.git
synced 2025-01-22 00:41:16 +01:00
Merge 20889ae89c64e4f7817ad41256bb1b1581ebbcab into 72eda9a24f815f6d566818cbf8518138e29d83e9
This commit is contained in:
commit
2e6bfc8de7
@ -52,7 +52,7 @@ def get_multi_binary_class_metric_fn(metrics, classes=None, class_dim=1):
|
||||
|
||||
num_labels = shape[class_dim]
|
||||
# If we are doing multi-class / multi-label metric, the number of classes / labels must
|
||||
# be know at graph construction time. This dimension cannot have size None.
|
||||
# be known at graph construction time. This dimension cannot have size None.
|
||||
assert num_labels is not None, "The multi-metric dimension cannot be None."
|
||||
assert classes is None or len(classes) == num_labels, (
|
||||
"Number of classes must match the number of labels")
|
||||
|
Loading…
x
Reference in New Issue
Block a user