ink.base.transform.counts.create_counts

ink.base.transform.counts.create_counts(dct, verbose=True)

Function to add counts of the categorical data inside the neighborhood of nodes of interest. By using this function, additional pairs will be added to count the number of occurrences of certain values within the nodes neighborhood. A simple example can be the the total number of occurrences of a specific relation within a certain node of interest.

Parameters
  • dct (dict) – Dictionary with nodes of neighborhoods.

  • verbose (bool) – Parameter to show tqdm tracker (default False).

Returns

Original neighborhood with additional count-based information.

Return type

dict