HF RL Explorer

Task: Replace All Elements of NumPy Array Greater Than a Threshold

Task: Replace All Elements of NumPy Array Greater Than a Threshold: a task in Terminal-Lego-15k (Harbor dataset). You need to write a Python script that efficiently replaces all elements in a 2D NumPy array that are greater than a specified threshold value.

The task

You need to write a Python script that efficiently replaces all elements in a 2D NumPy array that are greater than a specified threshold value.

Part of PrimeIntellect/Terminal-Lego-15k.