Fork自 PaddlePaddle / Paddle
1 metric update should be in the for loop. 2 sample_num is the shape's first element 3 preds cast should use round, astype("int32") method will cast all the elements(which is less than 1) to 0.
拖放文件到此处或点击上传