Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Klein <[email protected]>
  • Loading branch information
FrancescMartiEscofetQC and kklein authored Jul 22, 2024
1 parent 7c16b02 commit 4c1c12d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions metalearners/grid_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ def fit(

self.grid_size_ = len(jobs)
self.raw_results_: list[GSResult] | Generator[GSResult, None, None] | None
self.results_: pd.DataFrame | None
self.results_: pd.DataFrame | None = None

return_as = "list" if self.store_raw_results else "generator_unordered"
parallel = Parallel(
Expand All @@ -360,5 +360,3 @@ def fit(
if not self.store_raw_results:
# The generator will be empty so we replace it with None
self.raw_results_ = None
else:
self.results_ = None

0 comments on commit 4c1c12d

Please sign in to comment.