Skip to content

Commit

Permalink
Update sklearn_questions v3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico9803 authored Dec 19, 2023
1 parent ad7aee7 commit ff3a909
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sklearn_questions.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ def get_n_splits(self, X, y=None, groups=None):
self.X_ = X.reset_index().set_index(self.time_col,
verify_integrity=True)
number_month = self.X_.index.to_period('M').nunique()-1

return number_month

def split(self, X, y, groups=None):
Expand All @@ -208,7 +207,6 @@ def split(self, X, y, groups=None):
idx_test : ndarray
The testing set indices for that split.
"""

n_samples = X.shape[0]
n_splits = self.get_n_splits(X, y, groups)
period = self.X_.index.to_period('M')
Expand Down

0 comments on commit ff3a909

Please sign in to comment.