Functions and classes used by the Mapper for handling score matrices.
Warning
This module is considered an implementation detail, and may change without notice.
Functions
Temporarily enable verbose DEBUG-level messages. |
Classes
|
High-level selection operations. |
Temporarily enable verbose DEBUG-level messages.
Bases: object
High-level selection operations.
scores – A score matrix, where scores.index are values and score.columns are treated as the candidates.
min_score – Minimum score to consider make a value -> candidate match.
Create a DirectionalMapping with a given target Cardinality.
cardinality – Explicit cardinality to set, see cardinality. If
None, use the actual cardinality when selecting all matches with scores above the minimum.
A DirectionalMapping.
Bases: Generic[ValueType, CandidateType]
Data concerning a match.
A hashable candidate.
Bases: Generic[ValueType, CandidateType]
Data concerning the rejection of a match.