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
Fitting a XGBRegressor with enable_categorical=True on a Windows 10 machine results in an error. See below for a minimal example:
from random import choice
from string import ascii_lowercase
import pandas as pd
from xgboost.sklearn import XGBRegressor
n = 5
n_cat = 100
X = pd.Series(
[''.join(choice(ascii_lowercase) for _ in range(3)) for _ in range(n_cat)],
dtype="category"
)[:n].to_frame()
y = pd.Series(range(n))
model = XGBRegressor(
enable_categorical=True,
tree_method="approx",
)
model.fit(X=X, y=y)
Error: Process finished with exit code -1073740791 (0xC0000409)
Emm .. we calculate the number of categories as the number of discrete values, which couldn't handle the case when the number of categories is greater than the total number of entries. Should find a better way to handle this.
Fitting a XGBRegressor with enable_categorical=True on a Windows 10 machine results in an error. See below for a minimal example:
Error:
Process finished with exit code -1073740791 (0xC0000409)
conda list:
The text was updated successfully, but these errors were encountered: