sourced.ml.core.models.bow¶
Module Contents¶
-
class
sourced.ml.core.models.bow.BOW[source]¶ Bases:
modelforge.ModelWeighted bag of words model. Every word is correspond to an index and its matrix column. Bag is a word set from repository, file or anything else. Word is source code identifier or its part. This model depends on
sourced.ml.models.DocumentFrequencies.-
matrix[source]¶ Returns the bags as a sparse matrix. Rows are documents and columns are tokens weight.
-