LogClass icon indicating copy to clipboard operation
LogClass copied to clipboard

I can't find "\\logclass_bgl_2310136305\\best_params.json" where did it come from?

Open refuserMa opened this issue 3 years ago • 4 comments

When I try to run the code without --train,it comes to an error: python -m LogClass.logclass --force --kfold 3 --logs_type "bgl" --logs "LogClass/output/preprocessed_logs/bgl.txt" --models_dir "F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_4117346017\models" --featu res_dir "F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_4117346017\features" --report macro

Experiment ID: 2310136305 F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_2310136305 Traceback (most recent call last): File "D:\ANACONDA\envs\study\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "D:\ANACONDA\envs\study\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "F:\Users\Desktop\LogClass\LogClass\logclass.py", line 201, in main() File "F:\Users\Desktop\LogClass\LogClass\logclass.py", line 185, in main load_params(params) File "F:\Users\Desktop\LogClass\LogClass\utils.py", line 28, in load_params with open(params_file, "r") as fp: FileNotFoundError: [Errno 2] No such file or directory: 'F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_2310136305\best_params.json'


I have had several best_pararms.json of different outputs,but every time I run this code above,it can give me best_pararms.json of different id which can't found. Is there anything wrong with the code?

refuserMa avatar Sep 15 '21 12:09 refuserMa

In this case you would also need to specify the previous experiment's id with --id . This id is automatically generated if not specified, so in your example it seems it's trying to retrieve the best params from the current experiment which didn't save any best_params.

federicozaiter avatar Jan 09 '22 23:01 federicozaiter

Whether this issue is solved, I have also encountered the same problem and look forward to your reply

jiansuanli avatar Jul 31 '22 08:07 jiansuanli

I haven't solved this problem , this file maybe come from previous paper , or other data set.

------------------ 原始邮件 ------------------ 发件人: "NetManAIOps/LogClass" @.>; 发送时间: 2022年7月31日(星期天) 下午4:24 @.>; @.@.>; 主题: Re: [NetManAIOps/LogClass] I can't find "\logclass_bgl_2310136305\best_params.json" where did it come from? (#3)

Whether this issue is solved, I have also encountered the same problem and look forward to your reply

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

refuserMa avatar Aug 07 '22 08:08 refuserMa

You need to specify the id of the previous experiment you ran to retrieve its best parameters. I've now added a warning that explains this issue when running inference without manually setting an experiment id.

@refuserMa, it seems that in your case you need to run it in the following way, note I'm adding the experiment id 4117346017 to the command you shared above:

python -m LogClass.logclass --id 4117346017  --force --kfold 3 --logs_type "bgl" --logs "LogClass/output/preprocessed_logs/bgl.txt" --models_dir "F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_4117346017\models" --featu
res_dir "F:\Users\Desktop\LogClass\LogClass\output\logclass_bgl_4117346017\features" --report macro

Please let me know if this works now. Thanks!

federicozaiter avatar Aug 08 '22 14:08 federicozaiter