There seems to be a problem when it comes to creating the lgbm model. I’ve tried debugging this myself but I have no idea why the type error is thrown since all parameters seem legit. Perhaps @Stefan can help with this? Thanks!
What environment are you using? I think this is a version problem.
I’m using the latest lightgbm version 3.2. I’m currently running it on my local jupyter notebook through anaconda.
Try to install the environment ml4t-base.yml or ml4t.yml.
This looks like an older version of the code; there was an error when creating train/validation subsets and the code how reads as:
# iterate over folds for i, (train_idx, test_idx) in enumerate(cv.split(X=outcome_data)): # select train subset lgb_train = lgb_data.subset(used_indices=train_idx.tolist(), params=params).construct()
Thanks Stefan, that helped.