Machine Learning
R
Python

Exploring the iris dataset using Python and KNearest Neighbours
The Scikit documentation includes some great examples. Looking through the examples I found them difficult to interpret at first. These are my own notes on some variations of these examples, with some detailed comments added. Links to reference information are included throughout. 
Exploring the iris dataset using Python and KFold cross validation

Logistic regression: a simple explanation and worked example
Logistic regression is a technique for creating a model of the relationship between one or more input (“independent”) variables, and an output (“dependent”) variable which is categorical. Categorical means that the dependent variable can not take just any value, it can only take certain values.
Swift

A Swift implementation of the NewtonRaphson method
A basic Swift implementation of the NewtonRaphson method for finding the roots of a mathematical function. 
Linear algebra in Swift: a matrix struct data type
A matrix struct data type to simplify linear algebra using the Accelerate framework and higher order functions. Operator overloading is used to make the matrix calculations more readable. 
Using coremltools to convert a scikitlearn model to Core ML format
I wanted to convert a trained Scikitlearn logistic regression model into a Core ML format model which could be used in iOS. 
Linear Regression in Swift
Linear regression is a technique for creating a model of the relationship between two (or more) variable quantities. This is an explanation of the technique with code examples in Swift.