HF RL Explorer

Task: Custom Feature Names from OneHotEncoder using Column Names

Task: Custom Feature Names from OneHotEncoder using Column Names: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that demonstrates how to get meaningful feature names from scikit-learn's OneHotEncoder that include the original column names as prefixes (e.g., Sex female …

The task

Write a Python script that demonstrates how to get meaningful feature names from scikit-learn's `OneHotEncoder` that include the original column names as prefixes (e.g., `Sex_female`, `AgeGroup_15.0`) instead of the default generic names (e.g., `x0_female`, `x1_0.0`).

Part of PrimeIntellect/Terminal-Lego-15k.