Scientific Machine Learning

CIRM, Marseille, France
July 17 - August 25, 2023

First possibility: use Google Colab (Google account required)


Course material

  1. Course material for the first course:
    1. Import the following URL in colab:
      https://github.com/agussomacal/ROMHighContrast
    2. Select the notebook
      src/notebooks/InverseProblemPipeline.ipynb
      and follow the instructions contained within.

  2. Course material for the second course:
    1. Import the following URL in colab:
      https://github.com/georgexxu/ProgrammingAssignment
    2. Select the desired notebook and follow the instructions contained within.

  3. Course material for the third course:
    1. Import the following URL in colab:
      https://github.com/mroberto166/CEMRACS_CS3
    2. Select the notebook
      notebook.ipynb
      and follow the instructions contained within.

  4. Course material for the fourth course:
    1. Import the following URL in colab:
      https://github.com/maguerrap/CEMRACS2023
    2. Select the desired notebook and follow the instructions contained within.

Second possibility: local installation (Python ≥ 3.9 required)


  1. Download the archive containing the list of required Python packages, extract it, and navigate to the relevant folder in a terminal. For the purposes of this tutorial, we use the course_1 folder.

  2. If using pip:
    1. Create a new virtual environment:
      python -m venv course_1
    2. Activate the virtual environment:
      Linux, MacOS: source course_1/bin/activate
      Windows: .\course_1\Scripts\activate
    3. Install the required packages:
      pip install -r requirements.txt

  3. If using conda:
    conda create --name course_1 -c conda-forge --file requirements.txt
    conda activate course_1

  4. Once the environment is created and activated, it can be used as a python kernel in a jupyter notebook, if needed.
    1. Add the virtual environment as a kernel visible to jupyter:
      python -m ipykernel install --user --name=course_1
    2. Start the jupyter notebook:
      jupyter notebook (or jupyter-notebook)
    3. The jupyter window should appear. In there, either open an existing notebook, and change the kernel to course_1 via the menu; or create a new notebook using the course_1 kernel.
    4. If using Visual Studio code, the python extension should take care of everything. You can manually change the kernel on the bottom right of the VSCode interface.

Course material

  1. Course material for the first course: download the notebook here.

  2. Course material for the second course: clone this GitHub repository:
    git clone https://github.com/georgexxu/ProgrammingAssignment.git

  3. Course material for the third course: clone this GitHub repository:
    git clone https://github.com/mroberto166/CEMRACS_CS3
    and open the notebook notebook.ipynb.

  4. Course material for the fourth course: clone this GitHub repository:
    git clone https://github.com/maguerrap/CEMRACS2023

For the fifth course, a specific virtual machine setup is required: click here for more information