You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ML] Fix total feature importance unit tests (#1519)
We have an occasional failure in the total feature importance unit tests like this one. It happens while for some reason the mean value accumulator fails to produce correct results:
{
"feature_name": "c2",
"classes": [
{
"class_name": "foo",
"importance": {
"mean_magnitude": 0,
"min": -3.288343526748277,
"max": 3.288343526748277
}
},
{
"class_name": "bar",
"importance": {
"mean_magnitude": 0,
"min": -3.288343526748277,
"max": 3.288343526748277
}
}
]
}
In an attempt to fix this I changed the mean accumulator from using the eigen vector type to an explicit vector of doubles same as the min/max accumulator.
I keep the instrumentation of the unit tests for now so we have enough info if the tests continue to fail.
0 commit comments