Skip to content

Commit

Permalink
Fix score time
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancescMartiEscofetQC committed Jul 5, 2024
1 parent 0208a9a commit 2f0ea48
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 2f0ea48

Please sign in to comment.