Shortcuts

torcharrow.functional.get_max_count

torcharrow.functional.get_max_count(input_ids: ListColumn, matching_ids: ListColumn)

If there are items that overlap between input_ids and matching_ids contribute the maximum number of instances of overlapped ids to the max count.

Parameters:
  • input_ids (First list of ids) –

  • matching_ids (Second list of ids) –

Examples

>>> import torcharrow as ta
>>> from torcharrow import functional
>>> input_ids = ta.column([[1, 1, 2, 3],[5,8],[13]])
>>> matching_ids = ta.column([[1,2,3],[2,3],[13,13,13,13,13]])
>>> functional.get_max_count(input_ids, matching_ids)
0  4
1  0
2  5
dtype: Float32(nullable=True), length: 3, null_count: 0

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources