Neural networks using Python

Author(s) Ralf Gabriels avatar Ralf Gabriels
Overview
Creative Commons License: CC-BY Questions:
  • to do

Objectives:
  • Initializing model with a single layer (code)

  • Loss function

  • Model as equation

  • How model parameters are learned

  • Training steps (code)

  • Predictions and save+load models

  • Initializing model with multiple layers (code)

  • Forward step

  • Concept of backprop and epochs

  • Training (code)

Requirements:
Time estimation: 3 hours
Level: Intermediate Intermediate
Supporting Materials:
Published: Mar 11, 2025
Last modification: Mar 11, 2025
License: Tutorial Content is licensed under Creative Commons Attribution 4.0 International License. The GTN Framework is licensed under MIT
version Revision: 1
Best viewed in a Jupyter Notebook

This tutorial is best viewed in a Jupyter notebook! You can load this notebook one of the following ways

Run on the GTN with JupyterLite (in-browser computations)

  1. Click to Launch JupyterLite

Launching the notebook in Jupyter in Galaxy

  1. Instructions to Launch JupyterLab
  2. Open a Terminal in JupyterLab with File -> New -> Terminal
  3. Run wget https://training.galaxyproject.org/training-material/topics/statistics/tutorials/neural-networks-with-python/statistics-neural-networks-with-python.ipynb
  4. Select the notebook that appears in the list of files on the left.

Downloading the notebook

  1. Right click one of these links: Jupyter Notebook (With Solutions), Jupyter Notebook (Without Solutions)
  2. Save Link As..