462d31c615671a48dcac9d77e6de1bc360b31fee,auto_ml/predictor.py,Predictor,print_results,#Predictor#Any#Any#Any#Any#,836

Before Change


            self._print_ml_analytics_results_random_forest(model, feature_responses)

        else:
            feature_responses = feature_responses.sort_values(by="Importance", ascending=True)
            print("Here are our feature responses for the trained model")
            print(tabulate(feature_responses, headers="keys", floatfmt=".4f", tablefmt="psql"))

After Change


        elif self.ml_for_analytics and model_name in ["RandomForestClassifier", "RandomForestRegressor", "XGBClassifier", "XGBRegressor", "GradientBoostingRegressor", "GradientBoostingClassifier", "LGBMRegressor", "LGBMClassifier"]:
            df_model_results = self._print_ml_analytics_results_random_forest(model)
            sorted_model_results = df_model_results.sort_values(by="Importance", ascending=False)
            sorted_model_results = sorted_model_results.reset_index(drop=True)
            top_features = set(sorted_model_results.head(n=100)["Feature Name"])

            feature_responses = self.create_feature_responses(model, X, y, top_features)
            self._join_and_print_analytics_results(feature_responses, sorted_model_results, sort_field="Importance")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: ClimbsRocks/auto_ml
Commit Name: 462d31c615671a48dcac9d77e6de1bc360b31fee
Time: 2017-06-25
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: print_results


Project Name: quiltdata/quilt
Commit Name: e5c62b49200a6adef9f9c92469b866161f999046
Time: 2020-09-23
Author: kevinemoore@gmail.com
File Name: lambdas/pkgselect/index.py
Class Name:
Method Name: file_list_to_folder


Project Name: Featuretools/featuretools
Commit Name: 18f30454593e206a538858287c45bd3ed6c1da37
Time: 2018-05-22
Author: benjaminschreck93@gmail.com
File Name: featuretools/tests/entityset_tests/test_last_time_index.py
Class Name: TestLastTimeIndex
Method Name: test_grandparent