Skip to content

Latest commit

 

History

History
71 lines (49 loc) · 1.26 KB

make_classification_matcher.md

File metadata and controls

71 lines (49 loc) · 1.26 KB

TFSimilarity.indexer.make_classification_matcher

Convert classification matcher from str name to object if needed.

TFSimilarity.indexer.make_classification_matcher(

Args

matcher 'match_nearest', 'match_majority_vote' or ClassificationMatch object. Defines the classification matching, e.g., match_nearest will count a True Positive if the query_label is equal to the label of the nearest neighbor and the distance is less than or equal to the distance threshold.

Raises

ValueError matcher name is invalid.

Returns

ClassificationMatch Instantiated matcher if needed.