MixtureAnchorSelection
- class MixtureAnchorSelection(selections, ratios=None, selections_kwargs=None, **kwargs)[source]
Bases:
AnchorSelectionA weighted mixture of different anchor selection strategies.
Initialize the selection strategy.
- Parameters:
selections (
Sequence[Union[str,AnchorSelection,Type[AnchorSelection],None]]) – the individual selections. For the sake of selecting unique anchors, selections will be executed in the given order eg, [‘degree’, ‘pagerank’] will be executed differently from [‘pagerank’, ‘degree’]ratios (
Union[None,float,Sequence[float]]) – the ratios, cf. normalize_ratios. None means uniform ratiosselections_kwargs (
Union[Mapping[str,Any],None,Sequence[Optional[Mapping[str,Any]]]]) – additional keyword-based arguments for the individual selection strategieskwargs – additional keyword-based arguments passed to AnchorSelection.__init__, in particular, the total number of anchors.
Methods Summary
__call__(edge_index[, known_anchors])Select anchor nodes.
Extra components for __repr__.
Methods Documentation