Skip to content

Fix sklearn tree importances retrieval bug (backport v10)#377

Merged
folmos-at-orange merged 1 commit intodev-v10from
fix-sklearn-tree-importances-bug-backport-v10
Mar 28, 2025
Merged

Fix sklearn tree importances retrieval bug (backport v10)#377
folmos-at-orange merged 1 commit intodev-v10from
fix-sklearn-tree-importances-bug-backport-v10

Conversation

@folmos-at-orange
Copy link
Copy Markdown
Member

@folmos-at-orange folmos-at-orange commented Mar 28, 2025

When obtaining the tree feature kpis we access the JSON report path treePreparationReport.variablesStatistics. If there are informative variables but no informative tree variablesStatistics is not defined. We didn't check that and it lead to a bug in this rare case.


TODO Before Asking for a Review

  • Rebase your branch to the latest version of dev (or main for release PRs)
  • Make sure all CI workflows are green
  • When adding a public feature/fix: Update the Unreleased section of CHANGELOG.md (no date)
  • Self-Review: Review "Files Changed" tab and fix any problems you find

When obtaining the tree feature kpis we access the JSON report path
`treePreparationReport.variablesStatistics`. If there are informative
variables but no informative tree `variablesStatistics` is not defined.
We didn't check that and it lead to a bug in this rare case.
@folmos-at-orange folmos-at-orange changed the title Fix sklearn tree importances retrieval bug (#376) Fix sklearn tree importances retrieval bug (backport v10) Mar 28, 2025
Copy link
Copy Markdown
Collaborator

@popescu-v popescu-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@folmos-at-orange folmos-at-orange merged commit 8bbcea6 into dev-v10 Mar 28, 2025
19 checks passed
@folmos-at-orange folmos-at-orange deleted the fix-sklearn-tree-importances-bug-backport-v10 branch March 28, 2025 13:33
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