test=develop

revert-16555-model_data_cryption_link_all_lib
Genieliu 6 years ago
parent 83b22941af
commit 0be1ce5850

@ -243,6 +243,7 @@ class Precision(MetricBase):
raise ValueError("The 'labels' must be a numpy ndarray.")
sample_num = labels.shape[0]
preds = np.rint(preds).astype("int32")
for i in range(sample_num):
pred = preds[i]
label = labels[i]

Loading…
Cancel
Save