Skip to content

Course material for "Practical machine learning for spatial data"

License

Notifications You must be signed in to change notification settings

csc-training/GeoML

Repository files navigation

Exercise materials for "Practical machine learning for spatial data" at CSC

Course goals

  • General overview of machine learning for spatial data
  • Give vocabulary to continue with own experiments
  • Show and run some practical examples

Out of scope

  • Feature engineering
  • In depth result interpretation
  • Working with pointclouds

Content of this repository

This repository contains all Jupyter Notebooks and other code used in the course. Data is not inlcuded here, data download links are provided in data preparations Notebooks. Each exercise has its own folder:

Course exercise enviroment

During the course exercises are done in Puhti, which is one of CSCs supercomputers providing researchers in Finland with High Performance Computing resources.

Puhti webinterface

Jupyter for courses (only available during the course)

  • Click "Jupyter for courses" on dashboard
  • Select:
    • Project: project_2002044 during course, own project later
    • Module: GeoML22
    • Working directory: "/scratch/project_2002044"
  • Click launch and wait until granted resources
  • Click "Connect to Jupyter"
  • ... to be continued within Introduction notebook

Jupyter

  • Click "Jupyter" on dashboard
  • Select following settings:
    • Project: project_2002044 during course, own project later
    • Partition: interactive
    • CPU cores: 1
    • Memory (Gb): 8
    • Local disk: 0
    • Time: 4:00:00 (or adjust to reasonable)
    • Python: geoconda OR tensorflow depending on the exercise
      • Exercises 1, 2, 4 and 5: geoconda OR tensorflow
      • Exercises 3 and 8 notebooks: geoconda
      • Exercises 6 and 7: tensorflow
    • Jupyter type: Lab
    • Working directory: /scratch/project_2002044 during course, own project scratch later
  • Click launch and wait until granted resources
  • Click "Connect to Jupyter"

QGIS

  • Click "Desktop" on dashboard
  • Select:
    • Project: project_2002044 during course, own project later
    • Partition: interactive
    • Number of CPU cores: 1
    • Memory (GB): 10
    • Local disk: 0
    • Time: 4:00:00 (or adjust to reasonable)
    • Desktop: single application
    • App: QGIS
  • Click launch and wait until granted resources
  • Click "Launch Desktop"

Exercises on own computer

Exercises 1-7 Jupyter notebooks can be run as is on any computer. Exercise 8 (CNN), batch job scripts are Puhti specific as GPU resources are good to have for the exercise to run in reasonable time. However, the Python scripts can also be run on your own computer with some path adjustments.

To get started:

  • Get the exercise material from Github
    • Clone this Github repository: git clone https://github.com/csc-training/GeoML.git
    • OR download the repository as a zip-file
  • Install all needed packages for running the notebooks:
    • For pip use the requirements.txt with pip install -e requirements.txt
    • OR for conda, use the environment.yml with conda create --name geoml --file environment.yml which also creates a conda environment; see conda homepage on how to use it).
    • Package versions in comments in these files are versions used for GeoML course 2022 on Puhti.
  • Adapt the main path in beginning of each notebook to your environment.
  • Have fun going through the notebooks and add an issue to this repository if something is not working.

Extra material

Authors

Kylli Ek, Samantha Wittke, Johannes Nyman, Ziya Yektay

Acknowledgement

Please acknowledge CSC and Geoportti in your publications, it is important for project continuation and funding reports. As an example, you can write "The authors wish to thank CSC - IT Center for Science, Finland (urn:nbn:fi:research-infras-2016072531) and the Open Geospatial Information Infrastructure for Research (Geoportti, urn:nbn:fi:research-infras-2016072513) for computational resources and support".

About

Course material for "Practical machine learning for spatial data"

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages