You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andrey-khropov
changed the title
getting atBoostError: Invalid cat_features[6] = 22 value: index must be < 22 but len(x_train.columns) is 23
getting CatBoostError: Invalid cat_features[6] = 22 value: index must be < 22 but len(x_train.columns) is 23
Apr 8, 2024
Problem: getting "catBoostError: Invalid cat_features[6] = 22 value: index must be < 22" but len(cat_features) = 23
catboost version:1.2.3
Operating System: Linux 24.01.30
CPU:4 cores, 28 GB RAM, 56 GB disk
GPU:
`
print(x_train.columns)
print(len(x_train.columns)) # this returns 23
categorical_positions = [11,12,13,17,20,21,22]
model = CatBoostRegressor(iterations=100,
loss_function=f'MultiQuantile:alpha={quantile_str}', cat_features=categorical_positions)
model.fit(x_train, y_train)
`
The text was updated successfully, but these errors were encountered: