Skip to content
Snippets Groups Projects
Commit bcf82146 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent 99163832
No related branches found
No related tags found
No related merge requests found
......@@ -273,7 +273,7 @@ def model_select(
possible_ensemble = list(selected) + [i]
predictions = predictions_df[possible_ensemble].mean(1)
auc_score = roc_auc_score(df.hit.values, predictions.values)
if auc_score >= best_model_score:
if auc_score > best_model_score:
best_model = i
best_model_score = auc_score
if not selected:
......
......@@ -343,7 +343,7 @@ def train_models(args):
if results_generator:
for new_predictor in tqdm.tqdm(results_generator, total=len(work_items)):
save_start = time.time()
(model,) = predictor.models
(model,) = new_predictor.models
pprint.pprint(model.fit_info[-1]['training_info'])
(new_model_name,) = predictor.add_models(new_predictor.models)
predictor.save(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment