-
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
Description
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.