Skip to content

Conversation

@benwtrent
Copy link
Member

Backports the following commits to 7.x:

Feature importance is already calculated for multi-class models. This commit adjusts the output sent to ES so that multi-class importance can be explored.

Feature importance objects are now mapped as follows
(logistic) Regression:
```
{
   "feature_name": "feature_0",
   "importance": -1.3
}
```
Multi-class [class names are `foo`, `bar`, `baz`]
```
{ 
   “feature_name”: “feature_0”, 
   “importance”: 2.0, // sum(abs()) of class importances
   “foo”: 1.0, 
   “bar”: 0.5, 
   “baz”: -0.5 
},
```
Java side change: elastic/elasticsearch#53803
@benwtrent benwtrent merged commit e764ffe into elastic:7.x Mar 23, 2020
@benwtrent benwtrent deleted the backport/7.x/pr-1071 branch March 23, 2020 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant