Skip to content

Update PermutationFeatureImportance to select samples using fraction#341

Merged
cristian-tamblay merged 2 commits into
developfrom
fix/feature-importance-explainability
Oct 23, 2025
Merged

Update PermutationFeatureImportance to select samples using fraction#341
cristian-tamblay merged 2 commits into
developfrom
fix/feature-importance-explainability

Conversation

@Irozuku
Copy link
Copy Markdown
Collaborator

@Irozuku Irozuku commented Oct 21, 2025

This pull request updates the PermutationFeatureImportance explainer to use a fractional value for the number of samples drawn from the test set, instead of an absolute count. This makes the explainer more flexible and better suited for datasets of varying sizes. The parameter and its usage are renamed and refactored throughout the code and schema.

Parameter and schema changes:

  • Changed the parameter from max_samples (absolute integer) to max_samples_fraction (float between 0.0 and 1.0) in the PermutationFeatureImportanceSchema and throughout the explainer class.
  • Updated the placeholder for n_repeats from 10 to 20 for more robust permutation calculations.

@cristian-tamblay cristian-tamblay merged commit a8db237 into develop Oct 23, 2025
18 checks passed
@cristian-tamblay cristian-tamblay deleted the fix/feature-importance-explainability branch October 23, 2025 14:40
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.

2 participants