coclust.visualization.get_term_graph()

coclust.visualization.get_term_graph(X, model, terms, n_cluster, n_top_terms=10, n_neighbors=2, stopwords=[])[source]

Get a graph of terms.

Parameters:
  • X – input matrix
  • model (coclust.coclustering.BaseDiagonalCoclust) – a co-clustering model
  • terms (list of string) – list of terms
  • n_cluster (int) – Id of the cluster
  • n_top_terms (int, optional, default: 10) – Number of terms
  • n_neighbors (int, optional, default: 2) – Number of neighbors
  • stopwords (list of string, optional, default: []) – Words to remove