torcharrow.functional.get_score_max¶
- torcharrow.functional.get_score_max(input_ids: ListColumn, matching_ids: ListColumn, matching_id_scores: ListColumn)¶
Return the min among of all the scores in matching_id_scores that has a corresponding id in matching_ids that is also in input_ids.
- Parameters:
input_ids (First list of ids) –
matching_ids (Second list of ids) –
matching_ids_scores (scores (weights) of matching_ids) –
Examples
>>> import torcharrow as ta >>> from torcharrow import functional >>> input_ids = ta.column([[1, 2, 3]]) >>> matching_ids = ta.column([[1,2]]) >>> matching_id_scores = ta.column([[5.0,4.0]]) >>> functional.get_score_min(input_ids, matching_ids, matching_id_scores) 0 5.0 dtype: Float32(nullable=True), length: 1, null_count: 0