mosaicmpi.network.Network.get_representative_programs

mosaicmpi.network.Network.get_representative_programs#

Network.get_representative_programs(correlation_axis: Literal['programs', 'usage'] = 'programs') DataFrame#

Select programs based on correlation with the median of all programs in each community

Parameters:

correlation_axis (int or dict) – axis on which to compute correlations between programs whether correlating the programs or the usages, defaults to “programs”

Returns:

Features × programs matrix

Return type:

pd.DataFrame