070d29f888489fb24621108d1554f4ec31b03e3c,auto_ml/predictor.py,Predictor,_print_ml_analytics_results_random_forest,#Predictor#,924
Before Change
// XGB"s Classifier has a proper .feature_importances_ property, while the XGBRegressor does not.
if self.trained_pipeline.named_steps["final_model"].model_name in ["XGBRegressor", "XGBClassifier"]:
self._get_xgb_feat_importances(self .trained_pipeline.named_steps["final_model" ].model)
else:
trained_feature_names = self._get_trained_feature_names()
After Change
def _print_ml_analytics_results_random_forest(self):
try:
final_model_obj = self.trained_pipeline.named_steps["final_model"]
except:
final_model_obj = self.trained_pipeline
print("\n\nHere are the results from our " + final_model_obj.model_name)
if self.name is not None:
print(self.name)
print("predicting " + self.output_column)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: ClimbsRocks/auto_ml
Commit Name: 070d29f888489fb24621108d1554f4ec31b03e3c
Time: 2017-03-11
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: _print_ml_analytics_results_random_forest
Project Name: ClimbsRocks/auto_ml
Commit Name: ad07243adc1f8601dd01303671f8601e0261b3b7
Time: 2016-12-06
Author: ClimbsBytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: perform_grid_search_by_model_names
Project Name: ClimbsRocks/auto_ml
Commit Name: 070d29f888489fb24621108d1554f4ec31b03e3c
Time: 2017-03-11
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: _print_ml_analytics_results_linear_model