abhishekkrthakur / autoxgb

XGBoost + Optuna
Apache License 2.0
653 stars 90 forks source link

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

Open melnimr opened 2 years ago

melnimr commented 2 years ago

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'

ghost commented 1 year ago

I met the same problem. Did yoy solve it ?