.. gradnet documentation master file, created by sphinx-quickstart on Wed Sep 10 00:18:24 2025. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. GradNet documentation ===================== GradNet is a PyTorch-based framework for AI-enabled optimization of networks. Define static or dynamical objectives and constraints, then discover the optimal network structures. It encodes the network structure as a differentiable object with optional budget and structure constraints. It lets the users directly optimize static objectives using a lightweight PyTorch Lightning training loop. Alternatively, built-in ODE solvers can be used to define and optimize dynamical objectives. .. figure:: _static/gradient_descent.png :alt: Illustration of the gradient-based optimization pipeline for network structure. :align: center :width: 650px Illustration of the gradient-based optimization pipeline for network structures. .. figure:: _static/rewiring_net.gif :alt: A random network rewires itself with GradNet to optimize synchronization in the Kuramoto model. :align: center :class: home-hero :width: 400px A random network rewires itself with GradNet to optimize synchronization in the Kuramoto model. Installation ------------ .. code-block:: bash pip install gradnet Quick links ----------- - :doc:`GradNet ` – differentiable adjacency matrix model. - :doc:`fit ` – wrap your loss in a single-call trainer built on PyTorch Lightning. - :doc:`integrate_ode ` – integrate GradNet-defined ODEs into control or simulation workflows. Project links ------------- - `GitHub repository `_ .. toctree:: :maxdepth: 1 :caption: API Reference: :titlesonly: GradNet (class) fit (function) integrate_ode (function) trainer (module) utils (module) .. _tutorials-nav: .. toctree:: :maxdepth: 1 :glob: :caption: Tutorials: :titlesonly: tutorials/*