model must implement predict_proba
model must implement predict_proba
FPDE model-driven workflows need class probabilities.
Pass a fitted classifier that implements For scikit-learn, many classifiers support this directly.
Some models need probability support enabled before fitting.
predict_proba.model must expose classes_
model must expose classes_
FPDE maps probability columns back to labels through
classes_.
Fit the classifier before calling FPDE.feature dimension mismatch
feature dimension mismatch
The explanation input does not match the feature count used to fit the engine.
Apply the same preprocessing pipeline to training, validation, and explanation data.Check scaling, one-hot encoding, feature selection, and column order.
lambda_hyb must be in [0, 1]
lambda_hyb must be in [0, 1]
lambda_hyb is the Hyb-FPDE mixture weight.
Pass a finite number from 0.0 through 1.0.eps must be positive
eps must be positive
Cosine computations use epsilon-regularized norms.
Use a positive value such as
1e-12.The target and rival labels look wrong
The target and rival labels look wrong
FPDEEngine chooses labels from the classifier probability output.
The target class is the highest-probability class.
The rival class is the second-highest-probability class.Inspect the model probabilities and classes_.Quick checklist
- Use Python 3.12 or newer.
- Fit the classifier before fitting or using
FPDEEngine. - Pass data in the same feature space used by the classifier.
- Scale features when units differ.
- Use validation data, not test data, to select
lambda_hyb. - Save feature names and feature order with attribution outputs.