…and why you should use them in every project moving forward

Photo by Cyprien Delaporte on Unsplash


After all the hassle, even if you manage to get everything working for one project, you can’t easily replicate it for the next one.

You wish PyTorch had some abstractions to help with these problems, not a lot, just a thin layer. …

How to securely push your passwords to GitHub

Photo by Stefan Steinbauer on Unsplash

Reason for writing this article

This is not a full tutorial article like the ones I usually write. Maybe it should just be a top-rated answer on Stackoverflow.

Anyway, I was creating a Python package using nbdev and I needed to use an api_key and a secret_key to access some data. Locally, I just embedded them in a Python file config.py , added the config file to my .gitignore so I don’t accidentally push it to GitHub and started using my credentials.

Use nbdev to build Python packages using Jupyter notebooks

Photo by Sean Lim on Unsplash


The image below comes from the documentation page of a library called fastcore.

Change the way you track your ML experiments



As machine learning matures, we come across newer problems, and then we come up with sophisticated solutions for these problems. For example, in the beginning, it was hard to train a neural network itself. Then came GPUs and frameworks that made this task really easy. After that came Tensorboard for easy metric tracking, Streamlit for creating demo apps, and Docker for easy deploying. The field has come a long way. But there are still many components that need work.

One such component is experiment tracking. We still use physical notebooks or excel sheets to track experiments and then manually plot…

Learn how to make quick data apps using Streamlit to test your model



We use all kinds of techniques from creating a very reliable validation set to using k-fold cross-validation or coming up with all sorts of fancy metrics to determine how good our model performs. However, nothing beats looking at the raw output. When you look at sample output, you figure out things that none of the other methods can tell you.

For example, if you are performing object detection on crops, you might see that when the crop is aligned in a certain way because of the wind, our bounding boxes don’t encapsulate the crop properly.

However, looking at sample outputs…

Learn how to implement Fasterrcnn in PyTorch and extract the feature map for every image

Photo by Jonatan Pie on Unsplash


Object detection is a task in computer vision where instead of classifying an image, we try to classify the objects present in the image. It has various applications like detecting empty parking space, tracking objects in CCTV footage, and monitoring crops, which is the one we’ll be looking at.

There are many ways to perform object detection; Fasterrcnn is just one of them. Many of the other techniques, like YOLO and SSD, work equally well. …

Learn about a set of experiments we conducted for classifying brain hemorrhages.

source: https://swdic.com/radiology-services/mri-brain.php

This article is co-authored by Prajakta Phadke

The use of deep learning for medical applications has increased a lot in the last decade. Whether it’s to identify diabetes using retinopathy, predict
pnuemonia from Chest X-rays or count cells and measure organs using image segmentation, deep learning is being used everywhere. Datasets are being made freely available for practitioners to build models with.

In this article, you will learn about a bunch of experiments we conducted while working with brain MRIs. These experiments are available on Github as a sequence of notebooks.

Learn from examples how you can write better, reusable function



I have seen that a lot of beginner programmers don’t use functions while programming. And when I force them to write one, they just copy-paste a bunch of code into a function and call it done.

The function will have no arguments, no flexibility for various data structures and no reusability. Variables will be declared inside the function. Numbers will be used in various places instead of variables. And there will be no type-checking, no tests to see if it can break. The list just goes on. The function will work for their particular assignment and that’s it.

In this…

Learn how you can change the behavior of objects

source: https://www.dreamstime.com/photos-images/autumn-scenery.html


We are used to passing and returning various data types in and out of a function. It’s time to start passing and returning functions from functions. Let’s take an example.

Adding useful functionalities to Python lists

Image source: JoeyBLS photography


Python lists are good. But they’re not great. There is so much functionality that can be easily added to them but is still missing. Indexing with booleans, easily creating dictionaries from them, appending more than one element at a time, so on and so forth. Well, not anymore.

Fastai has come up with their own data structure called L . It can do everything that a Python list can do and much more.

The purpose of this article is to show you how easy it is to write such useful functionalities on your own. Especially if you are a beginner…

Dipam Vasani

It has all been said before, but not by me! Github: https://github.com/dipam7/ LinkedIn: https://www.linkedin.com/in/dipam-vasani-734932104/

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