Skip to content

'AutoMLState' has no attribute 'sample_weight_all' when split_type='time' #887

@ChristopherRussell

Description

@ChristopherRussell

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions