Interactive enculturation figures

In our 2017 Frontiers paper, we presented a proof-of-concept “simulation of enculturation” obtained by training a probabilistic generative model on folksongs from different cultures and cross-evaluating the model on test data from the respective cultures.

The paper contains a few scatter plots that visualize a kind of enculturation space in which the position of each rhythm encodes how much it aligns with the biases of one of the two cultures. In the paper, these figures are necessarily somewhat small, causing a lot of information to be obsured. Also, it is not possible to see which actual rhythm corresponds to each datapoint. A few years ago, I used a nifty libary called mpld3, which allows you to generate interactive plots with the matplotlib API, to create an interactive version of these scatter plots.

Below you can find an interactive version of Figure 4A of the paper. Hovering over each datapoint should reveal a score rendition of the rhythm it represents. The little gray buttons in the bottom-left corner can be used for navigation (try zooming in!). Note that the melodic aspects of these scores were ignored in our simulations; only the rhythms mattered.