class_docstr: Metric class for topic difference evaluation.
class_docstr_tok: ["Metric","class","for","topic","difference","evaluation","."]
docstr: Get the difference between each pair of topics in two topic models.
  
  Parameters
  ----------
  **kwargs
      Key word arguments to override the object's internal attributes.
      Two models of type :class:`~gensim.models.ldamodelLdaModel`
      are expected using the keys `model` and `other_model`.
  
  Returns
  -------
  np.ndarray of shape (`model.num_topics`, `other_model.num_topics`)
      Matrix of differences between each pair of topics.
  np.ndarray of shape (`model.num_topics`, `other_model.num_topics`, 2), optional
      Annotation matrix where for each pair we include the word from the intersection of the two topics,
      and the word from the symmetric difference of the two topics. Only included if `annotation == True`.
docstr_tok: ["Get","the","difference","between","each","pair","of","topics","in","two","topic","models",".","Parameters","--","--","--","--","--","*","*","kwargs","Key","word","arguments","to","override","the","object","'s","internal","attributes",".","Two","models","of","type",":","class",":","`","~gensim.models.ldamodelLdaModel","`","are","expected","using","the","keys","`","model","`","and","`","other_model","`",".","Returns","--","--","--","-","np.ndarray","of","shape","(","`","model.num_topics","`",",","`","other_model.num_topics","`",")","Matrix","of","differences","between","each","pair","of","topics",".","np.ndarray","of","shape","(","`","model.num_topics","`",",","`","other_model.num_topics","`",",","2",")",",","optional","Annotation","matrix","where","for","each","pair","we","include","the","word","from","the","intersection","of","the","two","topics",",","and","the","word","from","the","symmetric","difference","of","the","two","topics",".","Only","included","if","`","annotation","==","True","`","."]
code: def get_value(self, **kwargs):
      """Get the difference between each pair of topics in two topic models.
  
      Parameters
      ----------
      **kwargs
          Key word arguments to override the object's internal attributes.
          Two models of type :class:`~gensim.models.ldamodelLdaModel`
          are expected using the keys `model` and `other_model`.
  
      Returns
      -------
      np.ndarray of shape (`model.num_topics`, `other_model.num_topics`)
          Matrix of differences between each pair of topics.
      np.ndarray of shape (`model.num_topics`, `other_model.num_topics`, 2), optional
          Annotation matrix where for each pair we include the word from the intersection of the two topics,
          and the word from the symmetric difference of the two topics. Only included if `annotation == True`.
  
      """
      super(DiffMetric, self).set_parameters(**kwargs)
      diff_diagonal, _ = self.model.diff(
          self.other_model,
          self.distance,
          self.num_words,
          self.n_ann_terms,
          self.diagonal,
          self.annotation,
          self.normed,
      )
      return diff_diagonal
  
imports: import gensim
  import logging
  import copy
  import sys
  import numpy
label_desc: Use image node_id 2 for calling the DiffMetric obj's underlying member method code with example usage: obj.get_value() and returns: diff_diagonal