I am trying to replicate this https://cimcb.github.io/MetabWorkflowTutorial/Tutorial1.html and getting this error when running
# initalise cross_val kfold (stratified)
cv = cb.cross_val.kfold(model=cb.model.PLS_SIMPLS, # model; we are using the PLS_SIMPLS model
X=XTknn,
Y=Ytrain,
param_dict={'n_components': [1,2,3,4,5,6]}, # The numbers of latent variables to search
folds=5, # folds; for the number of splits (k-fold)
bootnum=100) # num bootstraps for the Confidence Intervals
# run the cross validation
cv.run()
AttributeError: can't set attribute
Need help on this.
CodePudding user response:
