sourced.ml.core.models.coocc

Module Contents

class sourced.ml.core.models.coocc.Cooccurrences[source]

Bases:modelforge.model.Model

Co-occurrence matrix.

NAME = co-occurrences[source]
VENDOR = source{d}[source]
DESCRIPTION = Model that contains the sparse co-occurrence matrix of source code identifiers.[source]
LICENSE[source]
tokens[source]

Returns the tokens in the order which corresponds to the matrix’s rows and cols.

matrix[source]

Returns the sparse co-occurrence matrix.

construct(self, tokens, matrix)[source]
dump(self)[source]
matrix_to_rdd(self, spark_context: 'pyspark.SparkContext')[source]