autoxgb icon indicating copy to clipboard operation
autoxgb copied to clipboard

Autoxgb CLI predict giving: AttributeError: 'ModelConfig' object has no attribute 'target_cols'

Open melnimr opened this issue 3 years ago • 1 comments

I am trying to run:

autoxgb predict --model_path output/ --test_filename test_file.csv --out_filename tmp.csv test_file.csv is

where test_file.csv is:

id,L0_n,L0_r,L0_w,L0_s,L0_freq,L0_L,L0_Q 700,2.25,67,15,2.1,2.25,1.406883,17.5144 701,5.75,69,22,2.1,2.25,14.00953,14.61921

I get the following error:

File "/home/neo/wellth-wrk/env/lib/python3.8/site-packages/autoxgb/predict.py", line 85, in _predict_df final_preds = pd.DataFrame(final_preds, columns=self.model_config.target_cols) AttributeError: 'ModelConfig' object has no attribute 'target_cols'

melnimr avatar Nov 23 '21 17:11 melnimr

I met the same problem. Did yoy solve it ?

ghost avatar May 23 '23 02:05 ghost