Liking cljdoc? Tell your friends :D

scicloj.ml.smile.discrete-nb


bow->SparseArrayclj

(bow->SparseArray ds bow-col indices-col options)

Converts a bag-of-word column bow-col to sparse indices column indices-col, as needed by the discrete naive bayes model. vocab size is the size of vocabluary used, sorted by token frequency

Converts a bag-of-word column `bow-col` to sparse indices column `indices-col`,
as needed by the discrete naive bayes model. `vocab size` is the size of vocabluary used, sorted by token frequency 
raw docstring

nb-lookup-tableclj


predictclj

(predict feature-ds thawed-model model)

Predict function for discrete naive bayes

Predict function for discrete naive bayes
raw docstring

trainclj

(train feature-ds target-ds options)

Training function of discrete naive bayes model. The column of name (options :sparse-colum) of feature-ds needs to contain the text as SparseArrays over the vocabulary.

Training function of discrete naive bayes model.
The column of name `(options :sparse-colum)` of `feature-ds` needs to contain the text as SparseArrays
over the vocabulary.
raw docstring

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

× close