CatBoostError: features data: pandas.DataFrame col...
# mlforecast
t
CatBoostError: features data: pandas.DataFrame column 'unique_id' has dtype 'category' but is not in cat_features list
auto_mlf = AutoMLForecast(
models={'cat': AutoCatboost()},
freq="D",
season_length=7,
fit_config=lambda trial: {'static_features': ['unique_id']},
)
auto_mlf.fit(
train,
n_windows=4,
h=horizon_to_predict,
num_samples=2
)
Any idea why this happens?
CatBoostError: /src/catboost/catboost/libs/data/features_layout.cpp:120: All feature names should be different, but 'year' used more than once.
This happens if i increase the num_samples
j
Which code are you running?