HF RL Explorer

Task: Find Length of Sequences of Identical Values in a NumPy Array (Run Length Encoding)

Task: Find Length of Sequences of Identical Values in a NumPy Array (Run Length Encoding): a task in Terminal-Lego-15k (Harbor dataset). Implement an efficient NumPy-based solution to find the lengths of consecutive sequences of True values in a boolean array (run length encoding). This is a…

The task

Implement an efficient NumPy-based solution to find the lengths of consecutive sequences of `True` values in a boolean array (run length encoding). This is a common problem when detecting events that exceed/fall below a threshold in time-series data.

Part of PrimeIntellect/Terminal-Lego-15k.