Skip to content

create classifier notebook - base_estimator #5

@RichardScottOZ

Description

@RichardScottOZ
TypeError                                 Traceback (most recent call last)
Cell In[7], line 14
      8 base_model.set_params(**rf_params)
     10 # Impute missing values and scale before training
     11 pu_model = make_pipeline(
     12     IterativeImputer(**imputer_params),
     13     RobustScaler(),
---> 14     BaggingPuClassifier(base_estimator=base_model, **pu_params),
     15 )
     16 pu_model.set_output(transform="pandas")
     18 # Train model

TypeError: BaggingPuClassifier.__init__() got an unexpected keyword argument 'base_estimator'

should be estimator

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions