create_patch_data
- create_patch_data(graph: TGraph, partition_tensor, min_overlap, target_overlap, min_patch_size=None, sparsify_method='resistance', target_patch_degree=4, gamma=0, verbose=False)[source]
Divide data into overlapping patches
- Parameters:
graph – input data
partition_tensor – starting partition for creating patches
min_overlap – minimum patch overlap for connected patches
target_overlap – maximum patch overlap during expansion of an edge of the patch graph
min_patch_size – minimum size of patches
sparsify_method – method for sparsifying patch graph (one of
'resistance'
,'rmst'
,'none'
)target_patch_degree – target patch degree for
sparsify_method='resistance'
gamma –
gamma
value for use withsparsify_method='rmst'
verbose – if true, print some info about created patches
- Returns:
list of patch data, patch graph