Skip to content
Snippets Groups Projects
README.md 2.24 KiB
Newer Older
  • Learn to ignore specific revisions
  • # Introduction to Machine Learning using Python
    
    schmittu's avatar
    schmittu committed
    
    
    Materials for the SIS machine learning workshop.
    
    schmittu's avatar
    schmittu committed
    
    
    chadhat's avatar
    chadhat committed
    
    
    ## Setup Instructions
    
    chadhat's avatar
    chadhat committed
    
    
    The setup is based on the Conda distribution for Python called Anaconda
    (https://www.anaconda.com/products/individual).
    
    chadhat's avatar
    chadhat committed
    
    
    ### I. Install Anaconda
    
    chadhat's avatar
    chadhat committed
    
    
    1. If you don’t have Anaconda yet, download and install Anaconda from
       https://www.anaconda.com/products/individual, or, in case you work on a ETH-managed
       computer, install Anaconda via the
       [ETH AppV Software Kiosk](https://app.ethz.ch/kiosk).
    
    chadhat's avatar
    chadhat committed
    
    
    ### II. Install Conda environment
    
    chadhat's avatar
    chadhat committed
    
    
    chadhat's avatar
    chadhat committed
    
    
    1. Open Terminal.app, change directory to the directory with workshop materials
       (`$ cd path/to/dir`) and run:
    
    chadhat's avatar
    chadhat committed
    
    
           $ conda env create -f environment.yml
    
    #### on Linux
    
    1. Open Terminal, change directory to the directory with workshop materials
       (`$ cd path/to/dir`) and run:
    
           $ run conda env create -f environment_linux.yml
    
    #### on Windows
    
    1. Start the Anaconda Navigator and Select "Environments"
    2. Press "Import Environment" Button.
    3. Click at the folder icon; using the File Selection Dialog navigate to the to the directory with workshop materials and select `environment.yml` file.
    4. Press "Import" Button.
    5. Click on the black triangle and from the dropdown list select "Open Terminal".
    
    ### III. Check installation
    
    1. In the Terminal run:
    
          $ conda run -n machine_learning_workshop_2021 python -c "import tensorflow, matplotlib, numpy, pandas; print('OK')"
    
       Your setup is OK if this command returns without any error message.
    
    2. Check if you can start JupyterLab in your Web browser by running in the Terminal:
    
          $ conda run -n machine_learning_workshop_2021 jupyter lab
    
    
    ## Using JupyterLab
    
    The course content is provided as Jupyter Notebooks. Please make sure to familiarize
    yourself with
    [JupyterLab Interface](https://jupyterlab.readthedocs.io/en/latest/user/interface.html).
    
    The Setup Instructions include information on how to start JupyterLab in a Web browser.
    
    ## Preparation Script
    
    The workshop materials contain a `00_numpy_pandas_matplotlib_intro.ipynb`
    Jupyter Notebook with an introduction to NumPy, pandas and Matplotlib libraries, which we
    are used without further introduction during the workshop. Please prepare yourself and
    go through the notebook.