The main goal of this post is to show how you can load images and metadata/tabular using a DataLoader in Pytorch, create batches and feed them together to the network. This is often desired when we want to combine the metadata to the images at some point in the network.

A good example of when this could be useful in the case of clinical data. Clinical data is often composed of patient information (here referred to as metadata), like age and sex, but also other information, like the exams the patient underwent. …

If you do any sort of programming you probably already heard about Github, and have been encouraged to, somehow, use it.

Now, I’ve seen plenty of repositories on the internet that lack the very basics of Git, and significantly ruin its purpose.

In this tutorial, I will focus on the very minimum necessary to keep your projects organized on Git, so that you and other people can make proper use of them.


What is Git for?

The main use of Git is for version control. Version control is useful if you make any changes down the line that ruin your code, or that you…

If you have been working with Scikit-learn for a while you probably already heard somewhere about how much better and safer a pipeline is. Pipeline is a Scikit-learn function used to aggregate all the steps between data pre-processing and model training/optimization.

In this post I will reference the functions and libraries in the figure below, you can find the whole code HERE:

We have all seen how amazing and insightful SHAP explanations can be. Though, when writing a scientific paper or any other situation that requires one to run multiple cross-validation iterations, the number of images start to stack and it becomes difficult to report results.

If you’re just looking for an answer you can skip this intro and go straight to the section below (named The Real Deal) where I explain the code and approach.

Colab code can be found here:

Machine learning models have been for long coined as a “black box”, due to their complex nature. The more complex…

Lucas Ramos

Artificial Intelligence PhD

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store