Skip to content
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

Closed
mojin2855 opened this issue May 15, 2023 · 4 comments
Closed

关于评价指标的计算问题 #43

mojin2855 opened this issue May 15, 2023 · 4 comments

Comments

@mojin2855
Copy link

# 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
求教这段代码目的是根据测试集标签将模型测试结果进行修正吗?
如果是的话在测试集没有标签时(实际应用中测试集本来就是没有标签的)模型不就失效了吗?

@wuhaixu2016
Copy link
Member

您好,请见#14
我们在readme中也有提及

@aesdhj
Copy link

aesdhj commented Apr 2, 2024

看了一圈,作者都没直接回答问题,1,真实数据没有label,adjust这段代码怎么办?2,为什么adjust注释掉以后,性能大幅下降?

@xiaobiao998
Copy link

想请教一下,如何解决没有测试集标签的问题了,谢谢

@xiaobiao998
Copy link

看了一圈,作者都没直接回答问题,1,真实数据没有label,adjust这段代码怎么办?2,为什么adjust注释掉以后,性能大幅下降?

请问这个问题解决了嘛,有什么方法可以克服没有测试标签的问题嘛,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants