SubGraphSLCWAInstances

class SubGraphSLCWAInstances(**kwargs)[source]

Bases: BaseBatchedSLCWAInstances

Pre-batched training instances for SLCWA of coherent subgraphs.

Initialize the instances.

Parameters:

kwargs – keyword-based parameters passed to BaseBatchedSLCWAInstances.__init__()

Methods Summary

iter_triple_ids()

Iterate over batches of IDs of positive triples.

subgraph_sample()

Sample one subgraph.

Methods Documentation

iter_triple_ids() Iterable[list[int]][source]

Iterate over batches of IDs of positive triples.

Return type:

Iterable[list[int]]

subgraph_sample() list[int][source]

Sample one subgraph.

Return type:

list[int]