class EDMDModel¶
- class deeptime.decomposition.EDMDModel(operator: ndarray, basis: Callable[[ndarray], ndarray], eigenvalues, modes)¶
The EDMD model which can be estimated from a
EDMD
estimator. It possesses the estimated operator as well as capabilities to project onto modes.- Parameters:
operator ((n, n) ndarray) – The estimated operator.
basis (callable) – The basis transform that was used.
eigenvalues ((n, ) ndarray) – Eigenvalues for the modes.
modes ((k, n) ndarray) – The EDMD modes.
See also
Attributes
Transforms the current state to .
Same as
operator
.The operator so that in transformed bases.
Inverse of the operator , i.e., .
The dimension of data after propagation by .
Transforms the future state to .
Methods
backward
(data[, propagate])Maps data backward in time.
copy
()Makes a deep copy of this model.
forward
(data[, propagate])Maps data forward in time.
get_params
([deep])Get the parameters.
set_params
(**params)Set the parameters of this estimator.
transform
(data, **kw)Transforms the data by first applying the basis and then the estimated modes, i.e.,
- __call__(*args, **kwargs)¶
Call self as a function.
- backward(data: ndarray, propagate=True)¶
Maps data backward in time.
- Parameters:
data ((T, n) ndarray) – Input data
propagate (bool, default=True) – Whether to apply the Koopman operator to the featurized data.
- Returns:
mapped_data – Mapped data.
- Return type:
(T, m) ndarray
- copy() Model ¶
Makes a deep copy of this model.
- Returns:
A new copy of this model.
- Return type:
copy
- forward(data: ndarray, propagate=True)¶
Maps data forward in time.
- Parameters:
data ((T, n) ndarray) – Input data
propagate (bool, default=True) – Whether to apply the Koopman operator to the featurized data.
- Returns:
mapped_data – Mapped data.
- Return type:
(T, m) ndarray
- get_params(deep=False)¶
Get the parameters.
- Returns:
params – Parameter names mapped to their values.
- Return type:
mapping of string to any
- set_params(**params)¶
Set the parameters of this estimator.
The method works on simple estimators as well as on nested objects (such as pipelines). The latter have parameters of the form
<component>__<parameter>
so that it’s possible to update each component of a nested object.- Parameters:
**params (dict) – Estimator parameters.
- Returns:
self – Estimator instance.
- Return type:
object
- transform(data: ndarray, **kw)¶
Transforms the data by first applying the basis and then the estimated modes, i.e.,
where is the input data, the basis transform, and the Koopman operator’s
- Parameters:
data ((T, n) ndarray) – Input data
- Returns:
transformed – The forward transform of the input data.
- Return type:
(T, n) ndarray
- property instantaneous_obs: Callable[[ndarray], ndarray]¶
Transforms the current state to . Defaults to f(x) = x.
- property operator: ndarray¶
The operator so that in transformed bases.
- property operator_inverse: ndarray¶
Inverse of the operator , i.e., . Potentially pseudo-inverse instead of true inverse.
- property output_dimension¶
The dimension of data after propagation by .
- property timelagged_obs: Callable[[ndarray], ndarray]¶
Transforms the future state to . Defaults to f(x) = x.