Last night the F#unctional Londoners Meetup put on a Hands On Machine Learning session at Skills Matter in London. It was a really well attended event, so much so that we had to put a cap on the number of attendees when we reached 70 registrations. The material was recycled from a well received session by Mathias Brandewinder at the San Francisco Bay Area F# User Group in May.
I find F# a very good fit for Machine Learning, in fact my first use of F# was for the player matchmaking on Halo 3.
The goal of the session was to create a digit recognizer using Kaggle’s competition data set.
The first part of the session was to parse and transform the provided CSV files:
let path = @"c:\Digits\digitssample.csv"
let lines = File.ReadAllLines(path)
lines |> Array.map (fun line -> line.Split(','))
Then to implement the K-nearest neighbours algorithm to classify digits. KNN is the first algorithm explained in Manning’s Machine Learning in Action book.
We used a guided script in the session that takes you through the problem in small manageable tasks, each one introducing the necessary F# language contructs required, which you could work through at home too.
Thanks for all the kind feedback:
-
Finn Neuik @finnneuik
great evening at #fsharp UG courtesy of #kaggle, @skillsmatter and @ptrelford : I do like a bit of machine learning!
-
James Crowley @JamesCrowley
Great evening learning some F# and machine learning with the help of @ptrelford @skillsmatter - thanks Phil!
-
Andy Brackley @andybrackley
Thanks @ptrelford for a great session on machine learning in f#. Excellent content and presentation
-
Chris Austin @cja117
@ptrelford thanks for a great #fsharp workshop at #SkillsMatter in London.
If you’re interested in learning more check out:the Machine Learning with F# page on the F# Software Foundation site which includes plenty more tutorials.