Cleaner
- class Cleaner[source]
Bases:
object
A cleanup method for ensuring that all entities are contained in the triples of the first split part.
Methods Summary
__call__
(triples_groups, random_state)Cleanup a list of triples array with respect to the first array.
cleanup_pair
(reference, other, random_state)Clean up one set of triples with respect to a reference set.
Methods Documentation
- __call__(triples_groups: Sequence[Tensor], random_state: None | int | Generator) Sequence[Tensor] [source]
Cleanup a list of triples array with respect to the first array.
- abstractmethod cleanup_pair(reference: Tensor, other: Tensor, random_state: None | int | Generator) tuple[Tensor, Tensor] [source]
Clean up one set of triples with respect to a reference set.
- Parameters:
- Returns:
a pair (reference, other), where some triples of other may have been moved into reference
- Return type: