edmkit 0.0.8__tar.gz → 0.0.9__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: edmkit
3
- Version: 0.0.8
3
+ Version: 0.0.9
4
4
  Summary: Simple EDM (Empirical Dynamic Modeling) library
5
5
  Author: FUJISHIGE TEMMA
6
6
  Author-email: FUJISHIGE TEMMA <tenma.x0@gmail.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "edmkit"
3
- version = "0.0.8"
3
+ version = "0.0.9"
4
4
  description = "Simple EDM (Empirical Dynamic Modeling) library"
5
5
  authors = [{ name = "FUJISHIGE TEMMA", email = "tenma.x0@gmail.com" }]
6
6
  readme = "README.md"
@@ -77,7 +77,6 @@ def scan(
77
77
  *,
78
78
  E: list[int],
79
79
  tau: list[int],
80
- n_ahead: int = 1,
81
80
  split: SplitFunc | None = None,
82
81
  predict: PredictFunc | None = None,
83
82
  metric: MetricFunc | None = None,
@@ -94,8 +93,6 @@ def scan(
94
93
  Embedding dimension candidates.
95
94
  tau : list[int]
96
95
  Time delay candidates.
97
- n_ahead : int
98
- Prediction horizon (steps ahead).
99
96
  split : SplitFunc or None
100
97
  Callable ``(n: int) -> list[Fold]``. Defaults to sliding_folds.
101
98
  predict : PredictFunc or None
@@ -138,15 +135,15 @@ def scan(
138
135
  for e in E:
139
136
  k = e + 1
140
137
  max_lag = (e - 1) * tau_max
141
- n_usable = N - max_lag - n_ahead
138
+ n_usable = N - max_lag
142
139
 
143
140
  if n_usable < 2:
144
141
  results.append(None)
145
142
  continue
146
143
 
147
- embeddings = [lagged_embed(x, t, e)[-(n_usable + n_ahead) : -n_ahead] for t in tau]
144
+ embeddings = [lagged_embed(x, t, e)[-n_usable:] for t in tau]
148
145
 
149
- Y_aligned = Y[max_lag + n_ahead : N]
146
+ Y_aligned = Y[max_lag:N]
150
147
 
151
148
  folds = split(n_usable)
152
149
  folds = [fold for fold in folds if len(fold.train) >= k] # ensure at least k points
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes