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 
sourceraw docstring

nb-lookup-tableclj

source

predictclj

(predict feature-ds thawed-model model)

Predict function for discrete naive bayes

Predict function for discrete naive bayes
sourceraw 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.
sourceraw docstring

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

× close