Skip to content

Fix sklearn tree importances retrieval bug#376

Merged
folmos-at-orange merged 1 commit intodevfrom
fix-sklearn-tree-importances-bug
Mar 28, 2025
Merged

Fix sklearn tree importances retrieval bug#376
folmos-at-orange merged 1 commit intodevfrom
fix-sklearn-tree-importances-bug

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
  • API Docs (only if there are changes in docstrings, rst files or samples):
    • Check the docs build without warning: see the log of the API Docs workflow
    • Check that your changes render well in HTML: download the API Docs artifact and open index.html
    • If there are any problems it is faster to iterate by building locally the API Docs

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.
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.
To be backported to dev-v10 as well.

@folmos-at-orange folmos-at-orange merged commit a9a2c5f into dev Mar 28, 2025
18 of 19 checks passed
@folmos-at-orange folmos-at-orange deleted the fix-sklearn-tree-importances-bug branch March 28, 2025 09:31
folmos-at-orange added a commit that referenced this pull request 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.
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