Liking cljdoc? Tell your friends :D

duckling.ml.naivebayes


classifyclj

(classify classifier bag-of-feats)

Tries to find the most likely class by computing each score for the given bag of features

Tries to find the most likely class by computing each score for the given
bag of features
sourceraw docstring

top10-classesclj

(top10-classes classifier)
source

train-classifierclj

(train-classifier dataset)

Returns a Naive Bayes classifier. Accepts a dataset following: [[{:feat1 1 :feat2 4 :feat3 6} <class1>] [{:feat2 5 :feat3 1 :feat6 9} <class2>]] First, counts every occurrence of each feature for each class Then, aggregates these counts into probabilities

Returns a Naive Bayes classifier.
Accepts a dataset following:
[[{:feat1 1 :feat2 4 :feat3 6} <class1>]
 [{:feat2 5 :feat3 1 :feat6 9} <class2>]]
First, counts every occurrence of each feature for each class
Then, aggregates these counts into probabilities
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close