#ML in Action
This is a Experiments from Peter Harrington book "ML in Action"
#kNN: k Nearest Neighbours
Input:
-
inX: vector to compare to existing dataset (1xN)
-
dataSet: size m data set of known vectors (NxM)
-
labels: data set labels (1xM vector)
-
k: number of neighbors to use for comparison (should be an odd number)
Output:
- the most popular class label
#Decision Tree