automl / SMAC3

SMAC3: A Versatile Bayesian Optimization Package for Hyperparameter Optimization
https://automl.github.io/SMAC3/v2.1.0/
Other
1.07k stars 220 forks source link

fix(RandomForest): Always cast `seed` to `int` #1084

Closed eddiebergman closed 10 months ago

eddiebergman commented 10 months ago

In cases where seeds were generated from some numpy objects, sometimes you'd get back an np.integer, which causes the program to crash when communicating with pyrfr through swig. It seems that swig doesn't know that it's an int-like and so we explicitly cast it to int.