fordanic / cmiv-ai-course

Contains Jupyter Notebooks used during the exercise sessions at CMIVs (https://liu.se/en/research/center-for-medical-image-science-and-visualization-cmiv) AI course for radiologists and pathologists.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CMIV AI Course

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:

Running with Colab

You can run all notebooks directly from the Github repo by clicking the links below:

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.

Local Installation

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.

Running the notebooks

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.

About

Contains Jupyter Notebooks used during the exercise sessions at CMIVs (https://liu.se/en/research/center-for-medical-image-science-and-visualization-cmiv) AI course for radiologists and pathologists.

License:MIT License


Languages

Language:Jupyter Notebook 98.9%Language:Python 1.1%