(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 builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |