Skip to content

Commit

Permalink
fix: Cross validation process will always be completed once started -…
Browse files Browse the repository at this point in the history
… no incomplete models will be returned to the user
  • Loading branch information
Daniel Grindrod authored and Daniel Grindrod committed Sep 30, 2024
1 parent e5d95f5 commit 6be980a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions flaml/automl/task/generic_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,8 +813,6 @@ def evaluate_model_CV(
if is_spark_dataframe:
X_train.spark.unpersist() # uncache data to free memory
X_val.spark.unpersist() # uncache data to free memory
if budget and time.time() - start_time >= budget:
break
val_loss, metric = cv_score_agg_func(val_loss_folds, log_metric_folds)
n = total_fold_num
pred_time /= n
Expand Down

0 comments on commit 6be980a

Please sign in to comment.