Dendrogram.fit(X, pairing_func=None, max_threshes=None)[source]

Build graphs for a given pairing function. First creates an adjacency matrix given a certain pairing function. It will then go through and build endges and graphs from those edge-vertex pairs. The graphs are all stored in order.

  • X (pd.DataFrame) – The dataframe for which to build the Dendrogram.
  • pairing_func (func) – A function which takes in two columns and returns a number.
  • max_threshes (int) – The maximum number of graphs to build.