Skip to content

Commit 194b548

Browse files
committed
CLN: remove discrete_time from scikit-time API
1 parent 8821a49 commit 194b548

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

pysindy/deeptime.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,6 @@ class SINDyEstimator(SINDy):
3636
Names for the input features (e.g. ``['x', 'y', 'z']``). If None, will use
3737
``['x0', 'x1', ...]``.
3838
39-
discrete_time : boolean, optional (default False)
40-
If True, dynamical system is treated as a map. Rather than predicting
41-
derivatives, the right hand side functions step the system forward by
42-
one time step. If False, dynamical system is assumed to be a flow
43-
(right-hand side functions predict continuous time derivatives).
44-
4539
Attributes
4640
----------
4741
model : sklearn.multioutput.MultiOutputRegressor object
@@ -61,13 +55,11 @@ def __init__(
6155
optimizer=None,
6256
feature_library=None,
6357
differentiation_method=None,
64-
discrete_time=False,
6558
):
6659
super(SINDyEstimator, self).__init__(
6760
optimizer=optimizer,
6861
feature_library=feature_library,
6962
differentiation_method=differentiation_method,
70-
discrete_time=discrete_time,
7163
)
7264
self._model = None
7365

@@ -94,7 +86,6 @@ def fit(self, x, **kwargs):
9486
self._model = SINDyModel(
9587
feature_library=self.model.steps[0][1],
9688
optimizer=self.model.steps[-1][1],
97-
discrete_time=self.discrete_time,
9889
n_control_features_=self.n_control_features_,
9990
)
10091
return self
@@ -157,12 +148,6 @@ class SINDyModel(SINDy):
157148
Names for the input features (e.g. ``['x', 'y', 'z']``). If None, will use
158149
``['x0', 'x1', ...]``.
159150
160-
discrete_time : boolean, optional (default False)
161-
If True, dynamical system is treated as a map. Rather than predicting
162-
derivatives, the right hand side functions step the system forward by
163-
one time step. If False, dynamical system is assumed to be a flow
164-
(right-hand side functions predict continuous time derivatives).
165-
166151
Attributes
167152
----------
168153
model : sklearn.multioutput.MultiOutputRegressor object
@@ -180,13 +165,11 @@ def __init__(
180165
self,
181166
feature_library,
182167
optimizer,
183-
discrete_time=False,
184168
n_control_features_=0,
185169
):
186170
super(SINDyModel, self).__init__(
187171
feature_library=feature_library,
188172
optimizer=optimizer,
189-
discrete_time=discrete_time,
190173
)
191174
self.n_control_features_ = n_control_features_
192175

0 commit comments

Comments
 (0)