This page contains tutorials and code snippets to showcase datafold’s API. All tutorials can be viewed online below. If you want to execute the notebooks in Jupyter, please also note the instructions in “Run notebooks with Jupyter”.
Download all tutorials in a zipped file.
- Uniform subsampling of point cloud manifold (download)
We show how the
PCManifolddata structure can be used to subsample a manifold point cloud uniformly.
The tutorial generates a large dataset with 10 Mio. samples by default. This may have to be reduced, depending on the available computer memory.
- Geometric Harmonics: interpolate function values on data manifold (download)
We showcase the out-of-sample extension for manifold learning models such as the
DiffusionMapsmodel. For this we use the
GeometricHarmonicsInterpolatorfor forward and backwards interpolation.
The tutorial requires also the Python package scikit-optimize which does not install with datafold.
- Extended Dynamic Mode Decomposition on Limit Cycle (download)
We generate data from a dynamical system (Hopf system) and compare different dictionaries of the Extended Dynamic Mode Decomposition (EDMD). We also evaluate out-of-sample predictions with time ranges exceeding the time horizon of the training data.
- Jointly Smooth Functions: An Example (download)
JointlySmoothFunctionsto learn commonly smooth functions from multimodal data. Also, we introduce
JsfDataset, which is used to make
JointlySmoothFunctionsconsistent with scikit-learn’s estimator and transformer APIs. Finally, we demonstrate the out-of-sample extension.
The code for jointly smooth functions inside this notebook is experimental.
Run notebooks with Jupyter¶
If datafold was installed via PyPI, …
… the tutorials are not included in the package. Download them separately from the above list.
If the datafold repository was downloaded, …
… navigate to the folder
/path/to/datafold/tutorials/. Before executing the tutorials, please make sure that the package is either installed (
python setup.py install) or that
path/to/datafold/is included in the PYTHONPATH environment variable (