Python hmmlearn installation issues

I’ve recently started learning how to apply a Hidden Markov Model (HMM) to some states of honeybee behaviour in my data and have been trying to install Python’s hmmlearn library. Unfortunately I kept getting this frustrating error due to it being unable to locate NumPy headers: After a bit of searching I found the solution in a …

Read More
Compiling C++ Code Using Caffe

As part of my PhD project, I have been writing a program in C++ to track hundreds of bees that I have tagged and to identify the pattern on the tags. Initially, I had thought that recognising the tags would be rather simplistic – I could threshold out the tags that are reflective under IR …

Read More
Interesting Readings

Work has kept me pretty busy lately but I’ve been meaning to try put together another post with some of the interesting readings I’ve come across. The first thing I’ll mention is that the IEEE (Institute of Electrical and Electronics Engineers) have released their rankings for programming language popularity. Python (ranked #4) and R (ranked #6) …

Read More
Saving OpenCV matrices to disc and loading them

Recently I needed to save some matrices I had generated with OpenCV and C++. This snippet of code shows you how you can do this this and then open the files to retrieve the matrices.  You can save the files as either the .yml or .xml format. In the example below, “trainData” and “trainLabels” are the …

Read More
Resources for Learning Haskell

I’ve had a few recommendations lately from experienced programmers that I should learn a “pure” functional language. This is supposed to allow me to think about problems and programming in a different way. I’ve used some functional aspects of Python before (like map), however, this will be my first real attempt at a proper functional …

Read More
PyCon 2015 Talks I Found Interesting

Here are some of the PyCon 2015 talks I found rather interesting, please note that some of the talks that refer to machine learning have been linked to in my post here.

Read More
Learning the Flask Python Web Framework

Flask is a minimalist web framework written in Python that I’ve become rather intrigued by, and have been been reading up on in my spare time. Part of the appeal of this framework is that all you need to get a simple server going is this:

Read More
How to use GitHub for version control

Lately I’ve become increasingly interested in using Git for version control of my programs. Git is a really good way to track changes made to your code either when you’re coding by yourself, or in a company with dozens of other developers. I’ve only really had a relatively superficial understanding of how Git worked before, …

Read More
Writing idiomatic Python videos

I’ve been subscribed to Jeff Knupp’s Python programming blog for a while now, and have really enjoyed a lot of the content. He recently released a 3-part video series on writing idiomatic Python, which I highly recommend watching.

Read More
Parallel operations in R

I thought I’d start a list of some code examples I’ve found online which enable you to perform parallel operations in R and take advantage of multi-core processors. By-Group Aggregation in Parallel Row Search in Parallel I’ll try to add to this list from time-to-time when I come across new examples.

Read More