Skip to content

Dummyclassifier with binary and multiclass and with predict proba #19907

@petr-ponomarenko

Description

@petr-ponomarenko

Describe the workflow you want to enable

There is case of mixing multiple classifiers with SelectFirstClassifier. This allows to include dummy constant classifiers for specific features conditions. For example this allows to provide fixed (rules based) prediction for some combination of features and their thresholds. Unfortunately to export pipeline with such scenario requires all classifiers to have the same output shape and structure. There are workarounds, but much better us to have dummy classifier with constant multiclass output with probabilities set with parameters.

Describe your proposed solution

Add support of binary and multiclass predictions with parameters controlling predict proba output.

Describe alternatives you've considered, if relevant

There is a way to add dummy records into training data and use real multiclass classifiers in combination with feature filters/droppers and selectfirstclassifier. This approach is not very stable and does not provide that much controll as defining exactly output probabilities.

There might be other ways to do controlled multyclass output for specific feature/thresholds combination in addition to main classifiers of pipeline and export it as pmml model. Please let me know about it. Thank you.

Additional context

Maybe ability to controll output probabilities with input features using function transformers with callables might be even better and broader use case solution.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions