:orphan: .. _general_examples: Example gallery =============== To clone the repository and the examples, please run:: $ git clone https://github.com/google/jaxopt.git or download this `zip file `_. To install the libraries that the examples depend on, please run:: $ pip install -r examples/requirements.txt .. raw:: html
.. raw:: html
Constrained optimization ------------------------ .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/constrained/images/thumb/sphx_glr_nmf_thumb.png :alt: Non-negative matrix factorizaton (NMF) using alternating minimization. :ref:`sphx_glr_auto_examples_constrained_nmf.py` .. raw:: html
Non-negative matrix factorizaton (NMF) using alternating minimization.
.. raw:: html
.. only:: html .. image:: /auto_examples/constrained/images/thumb/sphx_glr_multiclass_linear_svm_thumb.png :alt: Multiclass linear SVM (without intercept). :ref:`sphx_glr_auto_examples_constrained_multiclass_linear_svm.py` .. raw:: html
Multiclass linear SVM (without intercept).
.. raw:: html
.. only:: html .. image:: /auto_examples/constrained/images/thumb/sphx_glr_binary_kernel_svm_with_intercept_thumb.png :alt: Binary kernel SVM with intercept. :ref:`sphx_glr_auto_examples_constrained_binary_kernel_svm_with_intercept.py` .. raw:: html
Binary kernel SVM with intercept.
.. raw:: html
Deep learning ------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/deep_learning/images/thumb/sphx_glr_haiku_vae_thumb.png :alt: VAE example with Haiku and JAXopt. :ref:`sphx_glr_auto_examples_deep_learning_haiku_vae.py` .. raw:: html
VAE example with Haiku and JAXopt.
.. raw:: html
.. only:: html .. image:: /auto_examples/deep_learning/images/thumb/sphx_glr_haiku_image_classif_thumb.png :alt: Image classification example with Haiku and JAXopt. :ref:`sphx_glr_auto_examples_deep_learning_haiku_image_classif.py` .. raw:: html
Image classification example with Haiku and JAXopt.
.. raw:: html
.. only:: html .. image:: /auto_examples/deep_learning/images/thumb/sphx_glr_plot_sgd_solvers_thumb.png :alt: Comparison of different SGD algorithms. :ref:`sphx_glr_auto_examples_deep_learning_plot_sgd_solvers.py` .. raw:: html
Comparison of different SGD algorithms.
.. raw:: html
.. only:: html .. image:: /auto_examples/deep_learning/images/thumb/sphx_glr_distributed_flax_imagenet_thumb.png :alt: SPMD ResNet example with Flax and JAXopt. :ref:`sphx_glr_auto_examples_deep_learning_distributed_flax_imagenet.py` .. raw:: html
SPMD ResNet example with Flax and JAXopt.
.. raw:: html
Fixed point resolution ---------------------- .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/fixed_point/images/thumb/sphx_glr_plot_picard_ode_thumb.png :alt: Anderson acceleration in application to Picard–Lindelöf theorem. :ref:`sphx_glr_auto_examples_fixed_point_plot_picard_ode.py` .. raw:: html
Anderson acceleration in application to Picard–Lindelöf theorem.
.. raw:: html
.. only:: html .. image:: /auto_examples/fixed_point/images/thumb/sphx_glr_plot_anderson_wrapper_cd_thumb.png :alt: Anderson acceleration of block coordinate descent. :ref:`sphx_glr_auto_examples_fixed_point_plot_anderson_wrapper_cd.py` .. raw:: html
Anderson acceleration of block coordinate descent.
.. raw:: html
.. only:: html .. image:: /auto_examples/fixed_point/images/thumb/sphx_glr_plot_anderson_accelerate_gd_thumb.png :alt: Anderson acceleration of gradient descent. :ref:`sphx_glr_auto_examples_fixed_point_plot_anderson_accelerate_gd.py` .. raw:: html
Anderson acceleration of gradient descent.
.. raw:: html
.. only:: html .. image:: /auto_examples/fixed_point/images/thumb/sphx_glr_deep_equilibrium_model_thumb.png :alt: Deep Equilibrium (DEQ) model in Flax with Anderson acceleration. :ref:`sphx_glr_auto_examples_fixed_point_deep_equilibrium_model.py` .. raw:: html
Deep Equilibrium (DEQ) model in Flax with Anderson acceleration.
.. raw:: html
Implicit differentiation ------------------------ .. raw:: html
.. raw:: html
.. only:: html .. image:: /auto_examples/implicit_diff/images/thumb/sphx_glr_lasso_implicit_diff_thumb.png :alt: Implicit differentiation of lasso. :ref:`sphx_glr_auto_examples_implicit_diff_lasso_implicit_diff.py` .. raw:: html
Implicit differentiation of lasso.
.. raw:: html
.. only:: html .. image:: /auto_examples/implicit_diff/images/thumb/sphx_glr_ridge_reg_implicit_diff_thumb.png :alt: Implicit differentiation of ridge regression. :ref:`sphx_glr_auto_examples_implicit_diff_ridge_reg_implicit_diff.py` .. raw:: html
Implicit differentiation of ridge regression.
.. raw:: html
.. only:: html .. image:: /auto_examples/implicit_diff/images/thumb/sphx_glr_sparse_coding_thumb.png :alt: Sparse coding. :ref:`sphx_glr_auto_examples_implicit_diff_sparse_coding.py` .. raw:: html
Sparse coding.
.. raw:: html
.. toctree:: :hidden: :includehidden: /auto_examples/constrained/index.rst /auto_examples/deep_learning/index.rst /auto_examples/fixed_point/index.rst /auto_examples/implicit_diff/index.rst .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-gallery .. container:: sphx-glr-download sphx-glr-download-python :download:`Download all examples in Python source code: auto_examples_python.zip ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download all examples in Jupyter notebooks: auto_examples_jupyter.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_