Reading different data type in JSON/Haskell

This is something which I encountered today while writing a server in Haskell. We were getting the value of key "age" in our JSON file as a string, though we wanted to have it as an Integer. After much deliberation, wasting a whole day and as well as discussing on IRC, the below solution finally … Continue reading Reading different data type in JSON/Haskell


k-NN Algorithm

k-NN Algorithm is a type of instance based learning method, commonly used in various machine learning algorithms. I have illustrated this concept using an example in MATLAB. Let’s see what Instance based learning is before moving to k-NN Algorithm. Instance based learning Instance based training methods store the training examples instead of forming an explicit … Continue reading k-NN Algorithm