:mod:`sourced.ml.core.models.coocc` =================================== .. py:module:: sourced.ml.core.models.coocc Module Contents --------------- .. py:class:: Cooccurrences Bases::class:`modelforge.model.Model` Co-occurrence matrix. .. attribute:: NAME :annotation: = co-occurrences .. attribute:: VENDOR :annotation: = source{d} .. attribute:: DESCRIPTION :annotation: = Model that contains the sparse co-occurrence matrix of source code identifiers. .. attribute:: LICENSE .. attribute:: tokens Returns the tokens in the order which corresponds to the matrix's rows and cols. .. attribute:: matrix Returns the sparse co-occurrence matrix. .. method:: construct(self, tokens, matrix) .. method:: dump(self) .. method:: matrix_to_rdd(self, spark_context: 'pyspark.SparkContext')