Results¶
matchbox.client.results
¶
Objects representing the results of running a model client-side.
Classes:
-
ResolverMatches–Matches according to a resolver.
Functions:
-
normalise_model_scores–Validate and normalise model output scores.
ResolverMatches
¶
ResolverMatches(sources: list[Source], query_results: list[DataFrame])
Matches according to a resolver.
Parameters:
-
(sources¶list[Source]) –List of Source objects
-
(query_results¶list[DataFrame]) –List of tables with SCHEMA_QUERY_WITH_LEAVES
Methods:
-
from_dump–Initialise ResolverMatches from concatenated dataframe representation.
-
as_lookup–Return lookup across matchbox ID and source keys.
-
as_dump–Return mapping across root, leaf, source and keys.
-
as_leaf_sets–Return grouping of lead IDs.
-
view_cluster–Return source data for all records in cluster.
-
merge–Combine two instances of resolved matches by merging clusters.
Attributes:
-
sources– -
query_results–
from_dump
classmethod
¶
Initialise ResolverMatches from concatenated dataframe representation.
view_cluster
¶
view_cluster(cluster_id: int, merge_fields: bool = False) -> DataFrame
normalise_model_scores
¶
Validate and normalise model output scores.