Artificial intelligence and machine learning is becoming more and more prevalent in our everyday lives. In certain contexts, the introduction of AI/ML is predicted to significantly impact the way certain professions practice. Because of this, it is important that these professions, for example healthcare professionals such as radiologists and pathologists, are knowledgeable about AI/ML.
To ensure this, CMIV, Sectra and AIDA decided to provide an introductory AI/ML course targeting radiologists and pathologists. This repository contains the Jupyter Notebooks used for exercises during the course.
The notebooks are targeted towards users with little or no prior experience from data science in general and machine learning especially. The notebooks are meant to serve as an introduction to the field of machine learning, covering aspects such as:
- Supervised and unsupervised learning
- Classification and regression
- Neural networks
- Deep learning
The contained notebooks are to a large extent based upon the following tutorials:
Scikit-Learn
- SciPy 2018 Scikit-learn TutorialDeep Learning
- MachineLearningForMedicalImages
You can run all notebooks directly from the Github repo by clicking the links below:
- 01 - Introduction to Jupyter Notebooks and Data Science
- 02 - Supervised learning - Part 1
- 03 - Supervised Learning - Part 2a
- 03 - Supervised Learning - Part 2b (optional)
- 04 - Unsupervised Learning
- 05 - Practical Aspects of Machine Learning
- 06 - Artificial Neural Networks
- 07 - Deep Learning and Medical Imaging - Radiology
- 08 - Deep Learning and Medical Imaging - Digital Pathology
- 09 - Heart failure prediction
Note that this requires a Google account to sign in to Google Colaboratory.
Note that these notebooks were originally written for a Jupyter Notebook environment. We have madae some adjustments to allow them to be run in Google Colab, however, Google Colab uses a fork of Jupyter Notebooks and as such there will be some discrepancies between the content of the notebooks and the runtime environment in Google Colab.
Remember to change change runtime environment to GPU for the deep learning parts.
Use a browser to access Anaconda and from there choose to download and install Anaconda. Please select the right Anaconda version as suitable for your platform (Windows, Linux or macOS) and use the Python 3.6 version (not Python 2.7). Anaconda is a so called package manager for Python.
Once downloaded and installed, open a command prompt (cmd, bash or similar), navigate to the location of this file. Next to this file, there should also be a file titled environment.yml
. With the help of this file we will create an environment with the needed packages to run the notebooks. In the command prompt, run the following command:
conda env create -f environment.yml
Say yes if prompted to download any specific Python packages.
Open a command prompt (cmd, bash or similar), navigate to the location of this file.
To activate the created Python environment, run the following command:
activate mltutorials
(Windows)source activate mltutorials
(macOS and Linux)
To ensure that some widgets that are used in the notebooks work, run the following command:
jupyter nbextension enable --py --sys-prefix widgetsnbextension
This command only needs to be executed the first time.
To start the Jupyter notebooks, run the following command:
jupyter notebook
This should automatically launch a browser and start up the notebooks.
Note that running the deep learning notebook on your CPU without a GPU can take considerable time.