Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

xgb feature importance

bst.get_score(importance_type='gain')

>>{'ftr_col1': 77.21064539577829,
   'ftr_col2': 10.28690566363971,
   'ftr_col3': 24.225014841466294,
   'ftr_col4': 11.234086283060112}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #xgb #feature #importance
ADD COMMENT
Topic
Name
1+6 =