Skip to content

Fix #220: accept list/array X_row across explainer methods#338

Merged
oegedijk merged 1 commit intomasterfrom
fix-220-xrow-list-array
Feb 6, 2026
Merged

Fix #220: accept list/array X_row across explainer methods#338
oegedijk merged 1 commit intomasterfrom
fix-220-xrow-list-array

Conversation

@oegedijk
Copy link
Owner

@oegedijk oegedijk commented Feb 6, 2026

Summary

  • add shared X_row normalization for list/tuple/ndarray single-row inputs
  • support list/array X_row in get_contrib_df and related APIs (get_col_value_plus_prediction, pdp_df, classifier/regression prediction_result_df)
  • update docstrings, TODO, and release notes
  • add regression tests for classifier and regression paths

Testing

  • uv run pytest tests/test_classifier_base.py -k "contrib_df_accepts_list_or_array_X_row or prediction_result_df_accepts_list_or_array_X_row or pdp_df_accepts_list_or_array_X_row or get_col_value_plus_prediction_accepts_list_or_array_X_row" -q
  • uv run pytest tests/test_regression_base.py -k "prediction_result_df_accepts_list_or_array_X_row or pdp_df_accepts_list_or_array_X_row or get_col_value_plus_prediction_accepts_list_or_array_X_row" -q

Closes #220

@oegedijk oegedijk merged commit 55e63c3 into master Feb 6, 2026
12 checks passed
@oegedijk oegedijk deleted the fix-220-xrow-list-array branch February 6, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature value input to get_contrib_df

1 participant