Calculate the importance of a single class from a given xgb Model.
| 1 | single.class.importance(model_fn, feature_names_fn, x)
 | 
| model_fn | name of the file storing the xgb model (see train.model) | 
| feature_names_fn | name of the file storing the feature names (see import.data) | 
| x | class for which importance should be calculated | 
| label | path to feature names | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.