'k-nearest neighbor (kNN) is a simple supervised learning method for text classification.
Documents are classified by a majority vote of nearest neighbors (cosine distance)
in the training data.'

def __init__(self, train=[], baseline=MAJORITY, k=10, distance=COSINE, **kwargs):

    self.k = k
    self.distance = distance
    Classifier.__init__(self, train, baseline)
