HF RL Explorer

Task: Finding Local Maxima/Minima in a 1D NumPy Array

Task: Finding Local Maxima/Minima in a 1D NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that finds local maxima and local minima in a 1D NumPy array using functions from the NumPy/SciPy ecosystem (not a manual nearest-neighbor comparison approach).

The task

Write a Python script that finds local maxima and local minima in a 1D NumPy array using functions from the NumPy/SciPy ecosystem (not a manual nearest-neighbor comparison approach).

Part of PrimeIntellect/Terminal-Lego-15k.