deeptime.util¶
The util package contains various utilities used throughout the library.
Model validation utils¶
We currently offer an implied timescales check and a test of the Chapman-Kolmogorov equation:
|
Converts a list of models to a |
|
Performs a Chapman-Kolmogorov test: Under the assumption of Markovian dynamics some transfer operators such as the transition matrix of a Markov state model or a Koopman model possess the so-called Chapman-Kolmogorov property. |
with corresponding result objects
|
Instances of this class hold a sequence of lagtimes and corresponding process timescales (potentially with process timescales of sampled models in a Bayesian setting). |
|
Test results of the Chapman-Kolmogorov test. |
Data utilities¶
|
Utility function which splits input trajectories into pairs of timeshifted data \((X_t, X_{t+\tau})\). |
|
Creates a generator that yields exactly len(seq) subsequences of length at most 2 * radius + 1 in a sliding window manner along the given sequence. |
|
High-level container for time-lagged time-series data. |
|
Specialization of the |
|
Creates a trajectory dataset from a single trajectory by applying a lagtime. |
|
Dataset composed of multiple trajectories. |
|
Concatenates existing datasets. |
Statistics utilities¶
|
Compute a two-dimensional energy landscape based on data arrays x and y. |
|
Result of the |
|
Container for statistical quantities computed on samples. |
|
Computes element-wise confidence intervals from a sample of ndarrays |
Type utilities¶
|
Converts input data to a TimeLaggedDataset if possible, otherwise assumes that data implements __len__ as well as __getitem__, where __getitem__ yields a tuple of data. |
|
Checks whether an object can be ducktyped into a (time-lagged) dataset. |
|
View input as array with at least ndim dimensions. |
Differentiation utilities¶
|
Total-variation regularized derivative. |
|
Calculates finite difference coefficients. |
Yields a finite difference operator on midpoints. |
Other utilities¶
|
Handles the n_jobs parameter consistently so that a non-negative number is returned. |
|
Property that gets cached, obeys property api and can also be invalidated and overridden. |
|
Decorator marking a function that is a plotting utility. |
Marks an argument of a function as deprecated. |
|
Method to check if a progress bar supports the deeptime interface, meaning that it has update, close, and set_description methods as well as a total attribute. |
|
|
Base callback function for the c++ bindings to indicate progress by incrementing a progress bar. |
|
Checks whether a module is installed and available for import by the current interpreter. |
|
Takes a (potential) progress bar, if None, just returns an iterable that does nothing but return everything. |