From 972c788088c2ff5a1980e8d797b39fb553ccb5df Mon Sep 17 00:00:00 2001 From: Alan Kaptanoglu Date: Wed, 5 Apr 2023 08:21:24 -0700 Subject: [PATCH] First attempt at fixing the example notebook documentation on the readthedocs page. --- examples/README.rst | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/examples/README.rst b/examples/README.rst index 4ab9d917..7d9831a9 100644 --- a/examples/README.rst +++ b/examples/README.rst @@ -3,7 +3,7 @@ PySINDy Examples This directory showcases the following examples of PySINDy in action. -`Feature overview `_ +`Feature overview <./1_feature_overview.ipynb>`_ ----------------------------------------------------------------------------------------------------------- This notebook gives an almost exhaustive overview of the different features available in PySINDy. It's a good reference for how to set various options and work with different types of datasets. @@ -11,7 +11,7 @@ This notebook gives an almost exhaustive overview of the different features avai --------------------------------------------------------------------------------------------------------------------- We recommend that people new to SINDy start here. We give a gentle introduction to the SINDy method and how different steps in the algorithm are represented in PySINDy. We also show how to use PySINDy to learn a model for a simple linear differential equation. -`Original paper `_ +`Original paper <./3_original_paper.ipynb>`_ ------------------------------------------------------------------------------------------------------- This notebook uses PySINDy to reproduce the examples in the `original SINDy paper `_. Namely, it applies PySINDy to the following problems: @@ -23,7 +23,7 @@ This notebook uses PySINDy to reproduce the examples in the `original SINDy pape * Logistic map * Hopf system -`Scikit-learn compatibility `_ +`Scikit-learn compatibility <./4_scikit_learn_compatibility.ipynb>`_ ------------------------------------------------------------------------------------------------------------------------------- Shows how PySINDy interfaces with various Scikit-learn objects. @@ -34,40 +34,40 @@ Shows how PySINDy interfaces with various Scikit-learn objects. --------------------------------------------------------------------------------------------------------- Explore the differentiation methods available in PySINDy on pure differentiation problems and as components in the SINDy algorithm. -`Deeptime compatibility `_ +`Deeptime compatibility <./6_deeptime_compatibility.ipynb>`_ ------------------------------------------------------------------------------------------------------------------------ See a demonstration of PySINDy objects designed to conform to the `Deeptime `_ API. -`Plasma physics `_ +`Plasma physics <./7_plasma_example.ipynb>`_ ---------------------------------------------------------------------------------------------- Use the ``ConstrainedSR3`` optimizer to build a constrained model for the temporal POD modes of a plasma simulation. -`Trapping SINDy `_ +`Trapping SINDy <./8_trapping_sindy_paper_examples.ipynb>`_ ----------------------------------------------------------------------------------------------------------- This notebook applies the ``TrappingSR3`` optimizer to various canonical fluid systems., proposed in this paper: Kaptanoglu, Alan A., et al. "Promoting global stability in data-driven models of quadratic nonlinear dynamics." Physical Review Fluids 6.9 (2021): 094401. A preprint is found here ``_. -`SINDyPI `_ +`SINDyPI <./9_sindypi_with_sympy.ipynb>`_ ---------------------------------------------------------------------------------------------- This notebook applies the ``SINDyPI`` optimizer to a simple implicit ODE and was originally proposed in this paper: Kaheman, Kadierdan, J. Nathan Kutz, and Steven L. Brunton. "SINDy-PI: a robust algorithm for parallel implicit sparse identification of nonlinear dynamics." Proceedings of the Royal Society A 476.2242 (2020): 20200279. -`PDEFIND `_ +`PDEFIND <./10_PDEFIND_examples.ipynb>`_ ---------------------------------------------------------------------------------------------- This notebook applies the PDEFIND algorithm (SINDy for PDE identification) to a number of PDEs, and was originally proposed in this paper: Rudy, Samuel H., et al. "Data-driven discovery of partial differential equations." Science Advances 3.4 (2017): e1602614. -`Greedy Algorithms `_ +`Greedy Algorithms <./11_SSR_FROLS_examples.ipynb>`_ ----------------------------------------------------------------------------------------------------- This notebook uses the step-wise sparse regression (SSR) and forward-regression orthogonal least-squares (FROLS) algorithms, which are greedy algorithms that iteratively truncate (or add) one nonzero coefficient at each algorithm iteration. -`Weak formulation SINDy `_ +`Weak formulation SINDy <./12_weakform_SINDy_examples.ipynb>`_ -------------------------------------------------------------------------------------------------------------- This notebook uses SINDy to identify the weak-formulation of a system of ODEs or PDEs, adding significant robustness against noise in the data. -`Model ensembles `_ +`Model ensembles <./13_ensembling.ipynb>`_ ---------------------------------------------------------------------------------------------- This notebook uses sub-sampling of the data and sub-sampling of the SINDy library to generate many models, and the user can choose how to average or otherwise combine these models together. This tends to make SINDy more robust against noisy data. -`Cavity flow `_ +`Cavity flow <./14_cavity_flow.ipynb>`_ ---------------------------------------------------------------------------------------------- Demonstrates the use of SINDy to learn a model for the quasiperiodic dynamics in a shear-driven cavity at Re=7500, following Callaham, Brunton, and Loiseau (2021), preprint available here ``_.