Skip to content

Commit

Permalink
Merge branch 'main' into gridsearch_example
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC authored Jul 5, 2024
2 parents b10cac2 + 17f9dab commit 15970a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metalearners/grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def _fit_and_score(job: _FitAndScoreJob) -> _GSResult:
job.X_train, job.y_train, job.w_train, **job.metalerner_fit_params
)
fit_time = time.time() - start_time
start_time = time.time()

train_scores = job.metalearner.evaluate(
X=job.X_train,
Expand All @@ -67,7 +68,7 @@ def _fit_and_score(job: _FitAndScoreJob) -> _GSResult:
)
else:
test_scores = None
score_time = time.time() - fit_time
score_time = time.time() - start_time
return _GSResult(
metalearner=job.metalearner,
fit_time=fit_time,
Expand Down

0 comments on commit 15970a0

Please sign in to comment.