#NEWLINE# @ property #NEWLINE# def feature_importances_( self ) : #NEWLINE# #INDENT# 'Return the feature importances (the higher, the more important the\n           feature).\n\n        Returns\n        -------\n        feature_importances_ : array, shape = [n_features]\n        ' #NEWLINE# self . _check_initialized ( ) #NEWLINE# total_sum = np . zeros ( ( self . n_features , ) , dtype = np . float64 ) #NEWLINE# for stage in self . estimators_ : #NEWLINE# #INDENT# stage_sum = ( sum ( ( tree . feature_importances_ for tree in stage ) ) / len ( stage ) ) #NEWLINE# total_sum += stage_sum #NEWLINE# #UNINDENT# importances = ( stage / len ( self . estimators_ ) ) #NEWLINE# return importances