HF RL Explorer

Task: Convert Array of Indices to One-Hot Encoded Array in NumPy

Task: Convert Array of Indices to One-Hot Encoded Array in NumPy: a task in Terminal-Lego-15k (Harbor dataset). You need to create a Python script that converts a 1D NumPy array of indices into a 2D one-hot encoded array.

The task

You need to create a Python script that converts a 1D NumPy array of indices into a 2D one-hot encoded array.

Part of PrimeIntellect/Terminal-Lego-15k.