netneurotools.networks.binarize_network
- netneurotools.networks.binarize_network(network, retain=10, keep_diag=False)[source]
Keep top retain % of connections in network and binarizes.
Uses the upper triangle for determining connection percentage, which may result in disconnected nodes. If this behavior is not desired see
netneurotools.networks.threshold_network()
.- Parameters:
- Returns:
binarized – Binarized, thresholded graph
- Return type:
(N, N) numpy.ndarray