Clustering data with Dirichlet Mixtures in Edward and Pymc3

June 5, 2018

Last post I’ve described the Affinity Propagation algorithm. The reason why I wrote about this algorithm was because I was interested in clustering data points without specifying k, i.e. the number of clusters present in the data. This post continues with the same fascination, however now we take a generative approach. In other words, we are going to examine which models could have generated the observed data. Through bayesian inference we hope to find the hidden (latent) distributions that most likely generated the data points. ... Read more

Algorithm Breakdown: Affinity Propagation

May 18, 2018

On a project I worked on at the ANWB (Dutch road side assistence company) we mined driving behavior data. We wanted to know how many persons were likely to drive a certain vehicle on a regular basis. Naturally k-means clustering came to mind. The k-means algorithm finds clusters with the least inertia for a given k. A drawback is that often, k is not known. For the question about the numbers of persons driving a car, this isn’t that big of a problem as we have a good estimate of what k should be. ... Read more

Transfer learning with Pytorch: Assessing road safety with computer vision

April 12, 2018

For a project at Xomnia, I had the oppertunity to do a cool computer vision assignment. We tried to predict the input of a road safety model. Eurorap is such a model. In short, it works something like this. You take some cars, mount them with cameras and drive around the road you’re interested in. The ‘Google Streetview’ like material you’ve collected is sent to a crowdsourced workforce (at Amazon they are called Mechanical Turks) to manually label the footage. ... Read more

Computer build me a bridge

January 14, 2018

In earlier posts I’ve analyzed simple structures with a Python fem package called anaStruct. And in this post I’ve used anaStruct to analyze a very non linear roof ponding problem. Modelling a structure in Python may seem cumbersome in relation to some programs that offer a graphical user interface. For simple structures this may well be the case. However now we’ve got a simple way to programmatically model 2D structures, I was wondering if we could let a computer model these structures for us. ... Read more

Implementing a Support Vector Machine in Scala

November 27, 2017

This post describes the implementation of a linear support vector machine classifier (SVM) in Scala. Scala is a functional programming language that supports functional programming to a far extend. Because I am exploring Scala at the moment and I like the challenge of functional programming, the SVM will be implemented in a functional manner. We are going to test the SVM on two classes from the Iris dataset. ... Read more

A nonlinear water accumulation analysis in Python

August 23, 2017

Frames One of my first packages in Python is a program for analysing 2D Frames called anaStruct. I wrote this in the summer of 2016 and learned a lot by doing so. When it was ‘finished’ I was really enthusiastic and eager to give it some purpose in the ‘real’ engineering world. My enthusiasm wasn’t for long though. I wrote a fem package that can compute linear force lines. The real world however isn’t so linear. ... Read more

Programming a neural network from scratch

July 10, 2017

Edit 22-06-2018:   To my surprise, the vanilla implementation of the neural network discussed below is used as basis in a research to multi-layer perceptrons with adaptive sparse connections. How cool is that? You can find the extended code and the publication of the research in Nature in the links below: https://github.com/dcmocanu/sparse-evolutionary-artificial-neural-networks https://www.nature.com/articles/s41467-018-04316-3 Intro At the moment of writing this post it has been a few months since I’ve lost myself in the concept of machine learning. ... Read more

Deep learning music classifier part 2. Computer says no!

June 4, 2017

Recap Last post I described what my motivations were to start building a music classifier, or at least attempt to build one. The post also described how I collected a dataset, extracted important features and clustered the data based on their variance. You can read the previous post here. This post describes how I got my feet wet with classifying music. Spotify kind of sorted the data I’ve downloaded by genre. ... Read more

Deep learning music classifier part 1. 30 seconds disco!

May 12, 2017

Introduction As a nerd I am fascinated by the deep learning hype. Out of interest I have been following some courses, reading blogs and watched youtube video’s about the topic. Before diving into the content, I really thought this was something solely for the great internet companies and that it was not a subject us mortals could understand. While reading and learning more about it I’ve come to the insight that making use of deep learning techniques is not only something the internet giants and scientists can do. ... Read more

What should be explained in the Dutch SBR-B Guideline!

May 7, 2017

The Dutch SBR guideline is intended to help you process vibration data and help you determine when a vibration signal can cause discomfort to persons. It seems to me however, that the SBR-B guideline does not have the intention to be understood. They seem to help you by making a super abstract of scientific papers and by giving you a few keywords so you can Google it yourself. This post will elaborate on two formula’s given in the guideline. ... Read more

(c) 2018 Ritchie Vink.