.. This Software (Dioptra) is being made available as a public service by the .. National Institute of Standards and Technology (NIST), an Agency of the United .. States Department of Commerce. This software was developed in part by employees of .. NIST and in part by NIST contractors. Copyright in portions of this software that .. were developed by NIST contractors has been licensed or assigned to NIST. Pursuant .. to Title 17 United States Code Section 105, works of NIST employees are not .. subject to copyright protection in the United States. However, NIST may hold .. international copyright in software created by its employees and domestic .. copyright (or licensing rights) in portions of software that were assigned or .. licensed to NIST. To the extent that NIST holds copyright in this software, it is .. being made available under the Creative Commons Attribution 4.0 International .. license (CC BY 4.0). The disclaimers of the CC BY 4.0 license apply to all parts .. of the software developed or licensed by NIST. .. .. ACCESS THE FULL CC BY 4.0 LICENSE HERE: .. https://creativecommons.org/licenses/by/4.0/legalcode .. _tutorial-advanced-tutorials: Advanced Tutorials ================== The following tutorials are captured in Jupyter notebooks and are distributed as part of the dioptra git repository in the `examples folder `__. These tutorials use the Python client and can be run interactively from the provided notebook files. View the Tutorials ------------------ Click any of the links below to view the Jupyter notebook tutorials on GitHub. .. list-table:: :widths: 25 75 :header-rows: 1 * - Name - Description * - `Hello World with the Dioptra Python Client `__ - This tutorial demonstrates how interact with Diopta via the Python Client. It walks through registering a queue, importing plugins and entrypoints, creating an experiment, and finally executing jobs. * - `Adversarial ML with OPTIC `__ - This tutorial demonstrates how the OPTIC (Open Perturbation Testing for Image Classifers) plugin can be used to evaluate adversarial attacks and defenses on a model trained to recognize handwritten digits. Run the Tutorials ----------------- To run the tutorials in a local deployment, you'll need to do the following pre-requisites: - :ref:`Install Dioptra `: Ensure you have access to a Dioptra deployment - :ref:`Setup the Python Client `: Set up the Python Client - :ref:`Add a Dataset `: Download and configure any datasets used by the tutorial Then create a new virtual environment for running the tutorials and start Jupyter: .. code-block:: sh # Move into the examples folder of cloned repo cd /path/to/dioptra/examples # Create a new virtual environment at /path/to/dioptra/examples/.venv uv venv # Activate the virtual environment source .venv/bin/activate # Install the dependencies uv pip install -r examples-setup-requirements.txt # Run this in the examples/ folder jupyter notebook Once Jupyter starts up and is visible in your web browser, use the file explorer to navigate to open the tutorial you want to try.