Commit 8bbcea6
authored
Fix sklearn tree importances retrieval bug (#377)
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.1 parent 6373ff5 commit 8bbcea6
2 files changed
+11
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
1677 | | - | |
1678 | | - | |
1679 | | - | |
1680 | | - | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
1681 | 1685 | | |
1682 | 1686 | | |
1683 | 1687 | | |
| |||
0 commit comments