MCPcopy Create free account
hub / github.com/Atrovast/THGS / __init__

Method __init__

ext/spt/transforms/sampling.py:857–863  ·  view source on GitHub ↗
(
            self, r=2, i_level=1, k=1, by_size=False, by_class=False,
            use_batch=True, disjoint=False)

Source from the content-addressed store, hash-verified

855 Hence, if two subgraphs share a node, they will be connected
856 """
857 def __init__(
858 self, r=2, i_level=1, k=1, by_size=False, by_class=False,
859 use_batch=True, disjoint=False):
860 super().__init__(
861 i_level=i_level, k=k, by_size=by_size, by_class=by_class,
862 use_batch=use_batch, disjoint=disjoint)
863 self.r = r
864
865 def _sample_subgraphs(self, nag, i_level, idx):
866 # Skip if r<=0. This may be useful to turn this transform into

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected