-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于评价指标的计算问题 #43
Comments
您好,请见#14 |
看了一圈,作者都没直接回答问题,1,真实数据没有label,adjust这段代码怎么办?2,为什么adjust注释掉以后,性能大幅下降? |
想请教一下,如何解决没有测试集标签的问题了,谢谢 |
请问这个问题解决了嘛,有什么方法可以克服没有测试标签的问题嘛,谢谢 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
# detection adjustment anomaly_state = False for i in range(len(gt)): if gt[i] == 1 and pred[i] == 1 and not anomaly_state: anomaly_state = True for j in range(i, 0, -1): if gt[j] == 0: break else: if pred[j] == 0: pred[j] = 1 for j in range(i, len(gt)): if gt[j] == 0: break else: if pred[j] == 0: pred[j] = 1 elif gt[i] == 0: anomaly_state = False if anomaly_state: pred[i] = 1
求教这段代码目的是根据测试集标签将模型测试结果进行修正吗?
如果是的话在测试集没有标签时(实际应用中测试集本来就是没有标签的)模型不就失效了吗?
The text was updated successfully, but these errors were encountered: