I have been reading "Data Science from Scratch" and porting the python code to perl. In this episode, we use Naive Bayes to predict whether the speaker of a line is either Kirk, Spock or McCoy, with my new, work-in-progress data science library.
tl;dr: is-character.pl
Continue reading Predicting Star Trek Characters with Naive Bayes...
Yesterday I became curious about what Conway's Game of Life structures might sound like on a grid of musical notes ("note-space").
Continue reading Game of Life Glider Audio Rendering...
This weekend I watched Dr Hannah Fry's documentary on game theory, and was inspired by her discussion of Robert Axelrod's tournament to simulate the iterated prisoner's dilemma (IPD) for myself.
Continue reading Iterated Prisoner's Dilemma...
Today I became curious about the relative frequencies of the digits that appear in prime numbers (in base 10).
Naturally, I wrote a little program to show the answer - digit-freq2:
Continue reading Prime Number Digit Frequencies...
The other day I stumbled across the Wikipedia entry for Halstead software complexity and became curious about how the language Perl would measure up.
Now I knew the adage that "only perl can parse perl", but I also knew about the PPI set of modules on the CPAN. So I got to reading/experimenting...
Continue reading Halstead Software Complexity of Perl Code...