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 logger messages. |
Classes
|
High-level selection operations. |
Temporarily enable verbose DEBUG-level logger messages.
Returns a context manager. Calling the function without the with statement does nothing.
>>> from rics.mapping import Mapper, support
>>> with support.enable_verbose_debug_messages():
... Mapper().apply('ab', candidates='abc')
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.
Get all records with scores above the threshold.
Get all records with scores below the threshold.
Bases: Generic[ValueType, CandidateType]
Data concerning a match.
A hashable candidate.
Bases: Generic[ValueType, CandidateType]
Data concerning the rejection of a match.