Ensemble Methods¶
Methods to automate the execution of multiple community detection algorithm(s) instances.
Configuration Objects¶
Ranges can be specified to automate the execution of the same method while varying (part of) its inputs.
Parameter allows to specify ranges for numeric parameters, while BoolParamter for boolean ones.
|
|
|
Multiple Instantiation¶
Two scenarios often arise when applying community discovery algorithms to a graph:
the need to compare the results obtained by a given algorithm while varying its parameters
the need to compare the multiple algorithms
cdlib allows to do so by leveraging, respectively, grid_execution and pool.
|
Instantiate the specified community discovery method performing a grid search on the parameter set. |
|
Execute on a pool of community discovery internal on the input graph. |
Optimal Configuration Search¶
In some scenarios, it could be helpful to delegate to the library the selection of the method parameters to obtain a partition that optimizes a given quality function.
cdlib allows to do so using the methods grid_search and random_search.
Finally, pool_grid_filter generalizes such an approach, allowing one to obtain the optimal partitions from a pool of different algorithms.
|
Returns the optimal partition of the specified graph w.r.t. |
|
Returns the optimal partition of the specified graph w.r.t. |
|
Execute a pool of community discovery internal on the input graph. |