Skip to main content
Use this page when an FPDE call fails or returns an unexpected explanation.
FPDE model-driven workflows need class probabilities. Pass a fitted classifier that implements predict_proba.
For scikit-learn, many classifiers support this directly. Some models need probability support enabled before fitting.
FPDE maps probability columns back to labels through classes_. Fit the classifier before calling FPDE.
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 is the Hyb-FPDE mixture weight. Pass a finite number from 0.0 through 1.0.
Cosine computations use epsilon-regularized norms. Use a positive value such as 1e-12.
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.