API#
Input Module |
|
Functions for handling the data. |
|
It provides functions for preprocessing and constructing adjacency tensors from NetworkX graphs. |
|
It is designed to compute and print statistical information about NetworkX graphs. |
|
Model Module |
|
Class definition of CRep, the algorithm to perform inference in networks with reciprocity. |
|
Class definition of JointCRep, the algorithm to perform inference in networks with reciprocity. |
|
Class definition of DynCRep, the algorithm to perform inference in temporal networks [SCDB22]. |
|
Class definition of MTCOV, the generative algorithm that incorporates both the topology of interactions and node attributes to extract overlapping communities in directed and undirected multilayer networks [CPDB20]. |
|
Class definition of ACD, the algorithm to perform inference in networks with anomaly. |
|
Base classes for the models classes. |
|
This file contains the constants used in the models. |
|
This module contains the definition of namedtuple classes. |
|
Main script to run the algorithms. |
|
Version file. |
|
Synthetic Module |
|
Class for generation and management of synthetic networks with anomalies |
|
Base classes for synthetic network generation. |
|
Class definition of the reciprocity generative models with the member functions required. |
|
Code to generate multilayer networks with non-negative and discrete weights, and whose nodes are associated with one categorical attribute. |
|
Class definition of the reciprocity generative models with the member functions required. |
|
Model Selection Module |
|
This module defines the grid of parameters to be tested for models selection. |
|
Main function to implement cross-validation given a number of communities. |
|
This module contains the MTCOVCrossValidation class, which is used for cross-validation of the MTCOV algorithm. |
|
This module contains the DynCRepCrossValidation class, which is used for cross-validation of the DynCRep algorithm. |
|
Main module for running cross-validation for different algorithms. |
|
This module provides functions for shuffling indices and extracting masks for selecting the held-out set in the adjacency tensor and design matrix. |
|
This module contains the ACDCrossValidation class, which is used to perform cross-validation of the ACD algorithm. |
|
This module contains the CRepCrossValidation class, which is used for cross-validation of the CRep algorithm. |
|
This module contains the JointCRepCrossValidation class, which is used for cross-validation of the JointCRep algorithm. |
|
Module for extracting true labels and predicting labels. |
|
Model Selection Module |
|
Utils Module |
|
This module contains functions that perform matrix operations, such as the Khatri-Rao product. |
|
This module contains utility functions for data manipulation and file I/O. |
|
Visualization Module |
|
It provides a set of plotting functions for visualizing the results of the generative models. |