Skip to content

Commit

Permalink
TSCV: split - Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Nov 5, 2024
1 parent 3eebca1 commit b4c8608
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions src/pytimetk/crossvalidation/time_series_cv.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,12 +132,17 @@ def split(
"""Returns a generator of split arrays with an optional `slice_limit`.
Arguments:
*arrays: The arrays to split. Must have the same length as `time_series`.
time_series: The time series used to create boolean masks for splits. If not provided, the method will try
*arrays:
The arrays to split. Must have the same length as `time_series`.
time_series:
The time series used to create boolean masks for splits. If not provided, the method will try
to use the index of the first array (if it is a DataFrame or Series) as the time series.
start_dt: The start of the time period. If provided, it is used in place of `time_series.min()`.
end_dt: The end of the time period. If provided, it is used in place of `time_series.max()`.
return_splitstate: Whether to return the `SplitState` instance for each split.
start_dt:
The start of the time period. If provided, it is used in place of `time_series.min()`.
end_dt:
The end of the time period. If provided, it is used in place of `time_series.max()`.
return_splitstate:
Whether to return the `SplitState` instance for each split.
Yields:
A generator of tuples of arrays containing the training and forecast data. If `slice_limit` is set,
Expand Down

0 comments on commit b4c8608

Please sign in to comment.