(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
(predict feature-ds thawed-model model)
Predict function for discrete naive bayes
Predict function for discrete naive bayes
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close