UnboundLocalError: local variable 'labels' referenced before assignment and KeyError: 'machine-1-1'
run: python compute_score.py --dataset_name SMD
issue1: Traceback (most recent call last):
File "compute_score.py", line 281, in
run: python ensemble_proper.py --dataset_name SMD
issue2: ensemble for SMD in 30-3-skip-strategy ...
length of pkl path list is 0
Traceback (most recent call last):
File "ensemble_proper.py", line 461, in
您好,请问您解决这个问题了吗?我也是在最后遇到了这个问题。
我也没解决这个问题,发邮件问了作者,作者也没回复,请问你现在有什么思路改这个代码了吗?
------------------ 原始邮件 ------------------ 发件人: "17000cyh/IMDiffusion" @.>; 发送时间: 2024年6月30日(星期天) 晚上6:55 @.>; @.@.>; 主题: Re: [17000cyh/IMDiffusion] UnboundLocalError: local variable 'labels' referenced before assignment and KeyError: 'machine-1-1' (Issue #4)
您好,请问您解决这个问题了吗?我也是在最后遇到了这个问题
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
应该是需要先做:
python compute_score.py --dataset_name SMD
来进行异常分数的计算,再做ensemble的,否则可能会导致labels读取不成功。
I'm following the procedure of executing python compute_score.py --dataset_name SMD first, then python ensemble_proper.py --dataset_name SMD, and compute_score.py still has the same error.How do I solve this?