Skip to content

Commit

Permalink
Use strict inequality for more clarity (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
louisPoulain authored Nov 8, 2024
1 parent 6cd9665 commit 01ae6c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mlpp_lib/model_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ def _time_partitioning(self) -> None:
end_date = np.datetime64(test_indexers[1])
test_indexers = self.time_index[
np.logical_and(
self.time_index >= start_date, self.time_index <= end_date
self.time_index >= start_date, self.time_index < end_date
)
]
test_indexers = [t for t in test_indexers if t in self.time_index]
Expand Down

0 comments on commit 01ae6c4

Please sign in to comment.