cdlib.datasets.fetch_ground_truth_data

cdlib.datasets.fetch_ground_truth_data(net_name: str = 'karate_club', graph: object | None = None) object

Load the required ground truth clustering from the remote repository

Parameters:
  • net_name – network name

  • graph – the graph object associated to the ground truth (optional)

Returns:

a NodeClustering object

Example:

>>> from cdlib import datasets
>>> gt_coms = datasets.fetch_network_data(fetch_ground_truth_data="karate_club")