2019-05-12

Kafka Producer and Consumer example in Python

3 mins readIn this tutorial, we are going to build Kafka Producer and Consumer in Python. Along with that, we are going […]
2017-06-17

Compiling C extension modules on Windows (Cython)

10 mins readThis page describes how to compile a Cython extension (works for CPython extensions also) for Windows. If you encounter one […]
2017-06-17

Cythonize setup.py for several .pyx files

3 mins readConcept Distutils is the standard way to build Cython extension modules for large projects. Typically one invokes setup(…) which then […]
2017-06-14

Kernel Density Estimation (KDE) in Python

10 mins readNonparametric Density Estimation In some cases, a data sample may not resemble a common probability distribution or cannot be easily […]
2017-06-14

Implementations of Mutual Information (MI) and Entropy in Python

8 mins readIn probability theory and information theory, the mutual information (MI) of two random variables is a measure of the mutual […]