Shortcuts

Public API: torchdyn package

Subpackages

Submodules

torchdyn.utils module

General plotting utilities. These are used in tutorials and are designed for narrow uses.

torchdyn.utils.plot_2D_depth_trajectory(s_span, trajectory, yn, n_samples=128)[source]

Plots 2-dimensional trajectories of points.

torchdyn.utils.plot_2D_space_depth(s_span, trajectory, yn, n_lines)[source]

Plots 2D trajectories in a 3D space (2 dimensions of the system + time).

torchdyn.utils.plot_2D_state_space(trajectory, yn, n_samples=128)[source]

Plots state-space trajectories.

torchdyn.utils.plot_2d_boundary(model, X, y, mesh, num_classes=2, figsize=(8, 4), alpha=0.8)[source]

Plots decision boundary of a 2-dimensional task

torchdyn.utils.plot_2d_flows(trajectory, num_flows=2, figsize=(8, 4), alpha=0.8)[source]

Plots datasets flows learned by a neural differential equation.

torchdyn.utils.plot_3D_dataset(X, yn)[source]

Plots set of points in 3D.

torchdyn.utils.plot_static_vector_field(model, trajectory, t=0.0, N=50, device='cuda')[source]

Plots vector field and trajectories on it.

torchdyn.utils.plot_traj_vf_1D(model, s_span, traj, device, x_span, n_grid, n_levels=30, contour_alpha=0.7, cmap='winter', traj_color='orange', traj_alpha=0.1)[source]

Plots 1D datasets flows.

Module contents

Read the Docs v: latest
Versions
latest
stable
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.