I'm struggling to find a minimal example for this to share, but I think I can describe the issue. I think I could find a minimal example if I better knew how to get into this elif clause in the _search method at the end of fitting.
What I think is happening:
The only place I can see the sample_weight_all attribute being set is in AutoML._prepare_data and that only happens when split_type is in SHUFFLE_SPLIT_TYPES = ["uniform", "stratified"]. Then if AutoML._state.retrain_final is true then we call AutoMLState._train_with_config which leads to AutoMLState._prepare_sample_train_data which leads to the exception here because sample_weight_all is not set.
I'm struggling to find a minimal example for this to share, but I think I can describe the issue. I think I could find a minimal example if I better knew how to get into this elif clause in the
_searchmethod at the end of fitting.What I think is happening:
The only place I can see the
sample_weight_allattribute being set is in AutoML._prepare_data and that only happens whensplit_typeis inSHUFFLE_SPLIT_TYPES = ["uniform", "stratified"]. Then ifAutoML._state.retrain_finalis true then we call AutoMLState._train_with_config which leads toAutoMLState._prepare_sample_train_datawhich leads to the exception here becausesample_weight_allis not set.