time-split 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. {time_split-0.2.0 → time_split-0.2.1}/PKG-INFO +1 -1
  2. {time_split-0.2.0 → time_split-0.2.1}/pyproject.toml +1 -1
  3. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/__init__.py +1 -1
  4. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_limits.py +1 -1
  5. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/pandas/_impl.py +4 -4
  6. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/polars/_impl.py +1 -1
  7. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/settings.py +1 -1
  8. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/types.py +4 -4
  9. {time_split-0.2.0 → time_split-0.2.1}/LICENSE.md +0 -0
  10. {time_split-0.2.0 → time_split-0.2.1}/README.md +0 -0
  11. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/__init__.py +0 -0
  12. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_datetime_index_like.py +0 -0
  13. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_process_available.py +0 -0
  14. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_schedule.py +0 -0
  15. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_span.py +0 -0
  16. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_backend/_splitter.py +0 -0
  17. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_docstrings.py +0 -0
  18. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/__init__.py +0 -0
  19. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_plot.py +0 -0
  20. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_progress.py +0 -0
  21. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_split.py +0 -0
  22. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_to_string.py +0 -0
  23. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_frontend/_weight.py +0 -0
  24. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/_support.py +0 -0
  25. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/__init__.py +0 -0
  26. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/_log_progress.py +0 -0
  27. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/pandas/__init__.py +0 -0
  28. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/polars/__init__.py +0 -0
  29. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/sklearn/__init__.py +0 -0
  30. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/sklearn/_impl.py +0 -0
  31. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/integration/split_data.py +0 -0
  32. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/py.typed +0 -0
  33. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/support/__init__.py +0 -0
  34. {time_split-0.2.0 → time_split-0.2.1}/src/time_split/support/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: time-split
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Time-based k-fold validation splits for heterogeneous data.
5
5
  Home-page: https://github.com/rsundqvist/time-split
6
6
  Author: Richard Sundqvist
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "time-split"
3
- version = "0.2.0"
3
+ version = "0.2.1"
4
4
  description = "Time-based k-fold validation splits for heterogeneous data."
5
5
  authors = ["Richard Sundqvist <richard.sundqvist@live.se>"]
6
6
 
@@ -11,6 +11,6 @@ __all__ = [
11
11
  "__version__", # Make MyPy happy
12
12
  ]
13
13
 
14
- __version__ = "0.2.0"
14
+ __version__ = "0.2.1"
15
15
 
16
16
  _logging.getLogger(__name__).addHandler(_logging.NullHandler())
@@ -21,7 +21,7 @@ def expand_limits(limits: LimitsTuple, *, flex: Flex | LevelTuple | Iterable[Lev
21
21
  """Derive the `"real"` bounds of `limits`.
22
22
 
23
23
  Args:
24
- limits: A tuple ``(lo, hi)`` of timestamps.
24
+ limits: A tuple ``(min, max)`` of timestamps.
25
25
  flex: Flex arguments as described in the :ref:`User guide`. Also supports level-tuples
26
26
  ``[(start_at, round_to, tolerance)...]``. Passing ``flex=[settings.auto_flex.day, settings.auto_flex.hour]``
27
27
  is equivalent to ``flex='auto'``.
@@ -24,12 +24,12 @@ def split_pandas(
24
24
  ) -> Iterable[DatetimeSplit[PandasT]]:
25
25
  """Split a pandas type.
26
26
 
27
- This function splits indexed data (i.e. ``Series`` and ``DataFrame``, not the index itself. Use
28
- :func:`time_split.split <time_split.split>` for pandas ``Index`` types, setting ``available=data.index``.
27
+ This function splits indexed data (i.e. ``Series`` and ``DataFrame``), not the index itself. Use
28
+ :func:`time_split.split` for pandas ``Index`` types, setting ``available=data.index``.
29
29
 
30
30
  Args:
31
31
  data: A pandas data container type to split; either ``Series`` or a ``DataFrame``.
32
- time_column: A column in `data` to split on. Use ``data`.index`` if ``None``.
32
+ time_column: A column in `data` to split on. Use ``data.index`` if ``None``.
33
33
  log_progress: {log_progress}
34
34
  **kwargs: {DatetimeIndexSplitterKwargs}
35
35
 
@@ -39,7 +39,7 @@ def split_pandas(
39
39
  Tuples ``(data, future_data, bounds)``.
40
40
 
41
41
  Raises:
42
- TypeError: If `time_column` does not denote a datetime index-like field.
42
+ TypeError: If `time_column` is not datetime-like.
43
43
 
44
44
  """
45
45
  indexer = _Indexer(time_column)
@@ -33,7 +33,7 @@ def split_polars(
33
33
  Tuples ``(data, future_data, bounds)``.
34
34
 
35
35
  Raises:
36
- TypeError: If `time_column` does not denote a datetime index-like field.
36
+ TypeError: If `time_column` is not datetime-like.
37
37
 
38
38
  """
39
39
  indexer = _Indexer(time_column)
@@ -8,7 +8,7 @@ from . import types as _tst
8
8
  class auto_flex: # noqa: N801
9
9
  """Configuration for the `'auto'` :attr:`~time_split.types.Flex` logic.
10
10
 
11
- This class determines how ``(lo, hi)``-tuples are expanded when flexible bounds are enabled.
11
+ This class determines how ``(min, max)``-tuples are expanded when flexible bounds are enabled.
12
12
  """
13
13
 
14
14
  SANITY_CHECK: bool = True
@@ -27,7 +27,7 @@ class DatetimeSplitBounds(_t.NamedTuple):
27
27
  start: _pd.Timestamp
28
28
  """Left (inclusive) limit of the `data` range."""
29
29
  mid: _pd.Timestamp
30
- """Schedule timestamp.
30
+ """Schedule timestamp; simulated :attr:`~.DatetimeSplit.training_date`.
31
31
 
32
32
  Right (exclusive) limit of the `data` range, left (inclusive) limit of the `future_data` range.
33
33
 
@@ -50,10 +50,10 @@ class DatetimeSplitCounts(_t.NamedTuple):
50
50
 
51
51
 
52
52
  class DatetimeIndexSplitterKwargs(_t.TypedDict, total=False):
53
- """Keyword arguments for creating a ``DatetimeIndexSplitter``.
53
+ """Keyword arguments for :class:`~time_split.support.DatetimeIndexSplitter`.
54
54
 
55
- The :class:`time_split.support.DatetimeIndexSplitter` is the backend implementation for the splitting logic. In most
56
- cases, it should not be used directly. See func:`.split` or one of the related functions for user-facing APIs.
55
+ The ``DatetimeIndexSplitter`` is a backend implementation. In most cases, it should not be used directly. See
56
+ :func:`time_split.split` or one of the related functions for user-facing APIs.
57
57
  """
58
58
 
59
59
  schedule: _t.Required[Schedule]
File without changes
File without changes