LogIntelligence / LogADEmpirical

Log-based Anomaly Detection with Deep Learning: How Far Are We? (ICSE 2022, Technical Track)
MIT License
162 stars 40 forks source link

ValueError: 6 columns passed, passed data had 5 columns #13

Open X-zhihao opened 1 year ago

X-zhihao commented 1 year ago

I follow README.md demo shell script,and I got this error. Please tell me how to change the parameter to avoid this problem.

X-zhihao commented 1 year ago

Traceback (most recent call last): File "/data_disk/logAdSum/main_run.py", line 213, in main() File "/data_disk/logAdSum/main_run.py", line 171, in main train_size=args.train_size, random_sample=args.random_sample, session_type=args.session_level) File "/data_disk/logAdSum/logadempirical/dataset/data_process.py", line 127, in process_dataset "step_size": step_size}).to_dict("records") File "/data_disk/logAdSum/logadempirical/logdeep/dataset/session.py", line 133, in sliding_window pd.DataFrame(new_data, columns=raw_data.columns) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/frame.py", line 570, in init arrays, columns = to_arrays(data, columns, dtype=dtype) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 528, in to_arrays return _list_to_arrays(data, columns, coerce_float=coerce_float, dtype=dtype) File "/data_disk/anaconda3/envs/tranad/lib/python3.7/site-packages/pandas/core/internals/construction.py", line 571, in _list_to_arrays raise ValueError(e) from e ValueError: 6 columns passed, passed data had 5 columns

Process finished with exit code 1

benpaobamingliang1 commented 1 year ago

hello , We can communicate as follows, my WeChat ID is 18211741109

mateuszkochanek commented 1 year ago

I have the same problem, just in different place, what is the solution? Looks like something weird is going on with data here, as you pass column Content but dont fill it in sliding_window(raw_data, para).

image

I tried filling it with data, and preprocessing finishes correctly, but then I get another error.

image

souravs17031999 commented 1 year ago

@mateuszkochanek @X-zhihao were you able to resolve this issue ? I am having the same error.

mateuszkochanek commented 1 year ago

@souravs17031999 Not yet, I had other work to do this past week, but I'm coming back to this at Tuesday. If you find anything please share.

pupuu555 commented 1 year ago

hi,have you find the way to solve this issue?I meet the same problem now.

sailormoon-c commented 1 year ago

same problems for me. Have you solved this?

znagzanglong commented 1 year ago

I also encountered the same problem and it has not been resolved.

louki-vn commented 1 year ago

I have same problem. How to fix it?

X-zhihao commented 1 year ago

I think this is not a complete and correct code. Fixing it might be a waste of time since it won't run at all.

vanhoanglepsa commented 1 year ago

I have same problem. How to fix it?

This repo is under extension. Plz refer to the dev branch, which is up-to-date.

MingYueManQianShan commented 10 months ago

Maybe it's because the parameters of your command are incorrect, you'd better check them.

yi-sa-sa commented 10 months ago

Maybe it's because the parameters of your command are incorrect, you'd better check them.

I don't know if you run through this code, if you run through can ask for communication