f8a388ad9a6d3480991d2564b5276ecd25a704bc,optuna/importance/_sklearn.py,RandomForestFeatureImportanceEvaluator,get_param_importance,#RandomForestFeatureImportanceEvaluator#Any#,30
Before Change
param_importances = OrderedDict()
param_names = list(search_space.keys())
for i in feature_importances.argsort():
param_importances[param_names[i]] = feature_importances[i]
return param_importances
After Change
feature_importances = regr.feature_importances_
feature_importances_reduced = np.zeros((len(search_space),), dtype=np.float32 )
np.add.at(
feature_importances_reduced, transformed_cols_to_original_cols, feature_importances)
param_importances = OrderedDict()
param_names = list(search_space.keys())
for i in np.asarray(feature_importances_reduced).argsort():
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances Project Name: pfnet/optuna
Commit Name: f8a388ad9a6d3480991d2564b5276ecd25a704bc
Time: 2020-02-29
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_sklearn.py
Class Name: RandomForestFeatureImportanceEvaluator
Method Name: get_param_importance
Project Name: senarvi/theanolm
Commit Name: 14bbba3de29bdeb70476e18db758d356c728ca4f
Time: 2016-03-11
Author: seppo.git@marjaniemi.com
File Name: wordclasses/optimizer.py
Class Name: Optimizer
Method Name: _move
Project Name: pfnet/optuna
Commit Name: f8a388ad9a6d3480991d2564b5276ecd25a704bc
Time: 2020-02-29
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_sklearn.py
Class Name: PermutationImportanceEvaluator
Method Name: get_param_importance