if self.verbose:
print("Here are all the hyperparameters that were tried:")
raw_scores = gs.cv_results_
print("raw_scores")
print(raw_scores)
df_raw_scores = pd.DataFrame(raw_scores)
df_raw_scores = df_raw_scores.sort_values(by="mean_test_score", ascending=False)
col_name_map = {
After Change
pass
cleaned_params = list(df_raw_scores["params"].apply(utils.clean_params))
df_params = pd.DataFrame(cleaned_params)df_scores = pd.concat([df_raw_scores.mean_score, df_params], axis=1)
print("Score in the following columns always refers to cross-validation score")
print(tabulate(df_scores, headers="keys", floatfmt=".4f", tablefmt="psql", showindex=False))