ComparisonReport.feature_importance.coefficients#

ComparisonReport.feature_importance.coefficients()[source]#

Retrieve the coefficients for each report, including the intercepts.

If the compared reports are EstimatorReport instances, the coefficients from each report’s estimator are returned as a single-column DataFrame.

If the compared reports are CrossValidationReport instances, the coefficients across all cross-validation splits are retained and the columns are prefixed with the corresponding estimator name to distinguish them.

Comparison reports with the same features are put under one key and are plotted together. When some reports share the same features and others do not, those with the same features are plotted together.

Returns:
FeatureImportanceCoefficientsDisplay

The feature importance display containing model coefficients and intercept.