Skip to content

Latest commit

 

History

History

Lab0-ML

Lab 0: Introduction to theory and tools for machine learning

This lab will give a quick example-based introduction to basic ideas in machine learning, using Python and scikit-learn.
We will also introduce elements of graph theory, network science, and the concept of patient similarity networks (PSN) using NetworkX - a Python package for the creation, manipulation, and study of the structure, dynamics, and functions of complex networks.

Slides

Machine Learning

Graphs and Networks

Other resources on Graphs and Networks

A. Lundervold & the Medical AI Assistant: Elements of graph theory and patient similarity networks (PSN) - A short introduction for ELMED219+BMED365 [PDF] [$\LaTeX$]

For medical and biomedical students new to graph theory, the following online tutorials and resources provide a gentle introduction:

Jupyter notebooks

❓ As Jupyter Notebook is quite new to many of you, you may want to skim through some tutorials. Here are two (also linked under "Getting Started" at MittUiB):


Notebook 1-Click Notebook
Lab0-00-jupyter-notebook-markdown-basics.ipynb
Jupyter notebooks and Markdown cells! In this notebook, we'll present non-coding cells in Jupyter notebooks to document and display information associated with coding cells.
Google Colab
Lab0-01-simple-examples.ipynb
Constructs predictive models based on some simple data sets. Provides a hands-on introduction to some basic ingredients and techniques in ML.
Google Colab
Lab0-02-networkx-tutorial.ipynb
You can use NetworkX to construct and draw graphs that are undirected or directed, with weighted or unweighted edges. A large collection of functions to analyze graphs is available. This tutorial takes you through a few basic examples and exercises.
Google Colab
Lab0-03-patient-similarity-networks.ipynb
Rather, the famous IRIS flower dataset with 4 different measurements from each of the 150 flowers - construction and exploring the "IRIS Flower Similarity Network".
Google Colab

Your turn!

Spend some time playing around with the provided examples. You'll find some questions for you to investigate in the notebook. If you're already familiar with machine learning, you can try your hand at more advanced examples or, even better, help out other less experienced team members. Try out the things you learn in the DataCamp courses by modifying and extending the notebook used in this Lab.

img
If you have a subscription to ChatGPT Plus, you can also try out the the Medical AI Assistant (UiBmed - ELMED219 & BMED365) and see if you can get it to answer some of your questions.