johnmyleswhite / kNN.jl

The k-nearest neighbors algorithm in Julia
Other
22 stars 17 forks source link

Produce per-class probabilities for classification #3

Open johnmyleswhite opened 10 years ago

johnmyleswhite commented 10 years ago

Right now, predict produces the most probable class as its output. We should also expose a function like classprobs that produces the per-class probabilities for each class.