Machine learning on hand written digits