Skip to content

network.viz

class NetworkLayout(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)

Section titled “class NetworkLayout(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)”

Bases: StrEnum, Enum

Function to create a cmap from a list of values (corresponding to a condition for each subject.) For example, subject with value = 0 will be mapped black, whereas subject = >1 will be mapped to different colors.

array : Array of integers corresponding to condiditions (can be binary also.).

cmap : List containing all colors.

Function to create a colormap for a set of nodes based on a percentile dictionary.

percentile_dict : Percentile dictionary with keys identifying clusters.

cmap : List containing all colors.

membership_distribution(mat, output=‘./membership_distribution.png’)

Section titled “membership_distribution(mat, output=‘./membership_distribution.png’)”

Function returning a plot of the distribution of the maximum membership values for each subject and the delta plot of the difference with the second highest membership from the fuzzy c-partitioned matrix.

mat : Membership fuzzy c-partitioned matrix.

output : Output filename and path. Defaults to “./membership_distribution.png”.