When I press the predict button now I get this error.Can u help me ,please?
ValueError: DataFrame.dtypes for data must be int, float, bool or category. When categorical type is supplied, The experimental DMatrix parameterenable_categorical
must be set to True
. Invalid columns:marka: object, model: object, şəhər: object, yanacaq_novu: object, ötürücü: object, ban_növü: object, sürətlər_qutusu: object, rəng: object, hansı_bazar_üçün_yığılıb: object, rənglənib: object, vuruğu_var: object, lehimli_disk: object, abs_: object, lyuk: object, yağış_sensoru: object, mərkəzi_qapanma: object, park_radarı: object, kondisioner: object, oturacaqların_isidilməsi: object, dəri_salon: object, ksenon_lampalar: object, arxa_görüntü_kamerası: object, yan_pərdələr: object, oturacaqların_ventilyasiyası: object, avtosalon: object, yeni: object
Traceback:
File "c:\users\lala\appdata\local\programs\python\python39\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 552, in _run_script
exec(code, module.__dict__)File "C:\Users\Lala\Taskilled\Moto4\streamlit\pages\Prediction.py", line 401, in <module>
cars_price = model.predict(input_features)File "c:\users\lala\appdata\local\programs\python\python39\lib\site-packages\xgboost\sklearn.py", line 1114, in predict
predts = self.get_booster().inplace_predict(File "c:\users\lala\appdata\local\programs\python\python39\lib\site-packages\xgboost\core.py", line 2284, in inplace_predict
data, fns, _ = _transform_pandas_df(data, enable_categorical)File "c:\users\lala\appdata\local\programs\python\python39\lib\site-packages\xgboost\data.py", line 391, in _transform_pandas_df
_invalid_dataframe_dtype(data)File "c:\users\lala\appdata\local\programs\python\python39\lib\site-packages\xgboost\data.py", line 283, in _invalid_dataframe_dtype
raise ValueError(msg)