Let’s go through the process of writing our own code and then use it to map the same
data that we have from our jazz data set, then see what happens.
Our first step is to be able to initialize the cluster. If you remember we need to have
indicator variables z
t
that follow a uniform distribution. These tell us the probability
that each data point is in each cluster.
Named Tuples
Tuples in Python are basically immutable arrays. They are fast, and useful when mov‐
ing data around. But what is ...