How to discover and run unit tests programmatically in Python?

Sometimes you might want to run unittests from another Python script and gather its results instead of running python3 -m unittest manually. Running test cases programmatically is quite easy and gives you a lot of control on what happens during or after running the test cases.

June 11, 2020 · 2 min

Building Spiking Neural Networks

Spiking neural networks work by simulating the membrane potential of biological neurons. Unlike artificial neural networks spiking ones attempt to model the biological neurons that build up our brains. So while ANNs are inspired by biological brains, SNNs try to create them.

July 25, 2019 · 10 min

How does Google Pregel work?

MapReduce requires the data chunks to be processed independently. This processing model is unsuitable for many graph models in which a calculation often requires knowledge about calculations done for other nodes. This issue is exactly what Pregel tackles with message passing.

December 8, 2018 · 5 min

How to handle configuration in Python?

Configuration files can get messy when dealing with a large number of external parameters. The built-in solutions like argparse might not be scalable or clean enough to manage external parameters. In this post I look at an alternative YAML based solution that implicitly passes configuration to functions.

October 24, 2018 · 4 min

Keras Deep Learning 101

A very quick introduction to Keras and common architecture types with short examples. The slides include code snippets and tips on training neural networks.

October 16, 2018 · 2 min

Project Workshops

I cover useful information from running batch jobs to introduction for TensorFlow and Keras. These are aimed at students who have machine learning based projects.

November 30, 2017 · 1 min

How to specify pip install location?

Virtualenv provides a very good way to isolate packages. But sometimes it is better to install packages shared across projects in a custom location.

November 19, 2017 · 1 min