Task: Convert NaN Values to Zero in a NumPy Array
Task: Convert NaN Values to Zero in a NumPy Array: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that converts all NaN values in a 2D NumPy array to zero, then computes the average of the top 3 values in each row.
The task
Write a Python script that converts all `NaN` values in a 2D NumPy array to zero, then computes the average of the top 3 values in each row.
Part of PrimeIntellect/Terminal-Lego-15k.