An IPython notebook on the linear perceptron

Just mirroring a post from the other blog. Here is an IPython notebook with an implementation of the linear percepton algorithm. Details will follow in another post and I give a general idea of what it does in the notebook but here is what the picture looks like. Assuming that you have a set of points and you want to find a line that separates … Continue reading An IPython notebook on the linear perceptron

Probabilistic Programming & Bayesian Methods for hackers

I don’t know when people exactly started using the awesome platform that is IPython to write full-fledged books, but this is one of those that you don’t want to miss. It’s basically a tutorial on Bayesian methods, using the PyMC package to explain several things like, What is probabilistic programming? How does Bayesian inference work? Why should you care about the law of large numbers? What … Continue reading Probabilistic Programming & Bayesian Methods for hackers

Non-commutative operators, expansions, Sympy and all that Jazz.

Just me playing around with Sympy and non-commutative operators. Check a small demo I wrote in IPython from the link here. These days, commutators play a central role when studying how lattice Monte Carlo performs when trying to compute some kind of observable. Often, I would want to try to compute that observable over an enormous lattice and then it’s a good idea to try … Continue reading Non-commutative operators, expansions, Sympy and all that Jazz.