sandbox

This is my current blog where I discuss a variety of computing topics including Linux, vim, python and javascript as well as science and statistics. Many of the posts have accompanying gists, which contain code for the example discussed.

Installing essentia for audio feature extraction

Dec 10, 2014

Some notes on the installation of essentia, a collection of c++ code with Python wrappers for audio feature extraction, following the essentia installation guide.

Getting started with Latent Dirichlet Allocation in Python

Nov 13, 2014

In this post I will go over installation and basic usage of the lda Python package for Latent Dirichlet Allocation (LDA). I will not go through the theoretical foundations of the method in this post. However, the main reference for this model, Blei et. al. (2003) is freely available online and I think the main idea of assigning documents in a corpus (set of documents) to latent (hidden) topics based on a vector of words is fairly simple to understand and the example will help to solidify our understanding of the LDA model.

Inferring probabilities, a second example of Bayesian calculations

Oct 24, 2014

In this post I will focus on an example of inferring probabilities given a short data series. I will start by tackling the theory of how to do the desired inference in a Bayesian way and will end by implementing the theory in Python so that we can play around with the ideas. In an attempt to keep the post more accessible, I will only consider a small set of candidate probabilities. This restriction allows me to minimize the mathematical difficulty of the inference and still obtain really cool results, including nice plots of the prior, likelihood and posterior.

Python 3.4 on Ubuntu 14.04 using virtual environments

Sep 16, 2014

In a previous post I talked about using virtual environments with the default Python version-- this is Python 2.7.6 for Ubuntu 14.04. However, both Python 2.7 and 3.4 are available on Ubuntu 14.04. In this post I'll go over setting up a virtual environment for working with Python 3 code.

Medical tests, a first example of Bayesian calculations

Sep 11, 2014

In this post I will discuss a first example of a Bayesian calculation using a well-known example of testing for breast cancer.