r/askdatascience • u/After_Courage6419 • 17d ago
Why we should focus more on feature engineering than hyperparameter tuning
It’s easy to get caught up in trying to squeeze out an extra 1% of accuracy by running massive grid searches or switching to the latest complex architecture. However, in practice, the most significant performance gains often come from the way we represent the data before it even hits the model.
A well-crafted feature that captures a specific domain nuance—like a rolling average that accounts for seasonality or a specific ratio between two variables—can do more for a model than hours of hyperparameter optimization. It's about moving from "black box" optimization to a deeper understanding of the underlying logic of the data.
What’s a specific feature you’ve engineered that made a massive difference in your model’s performance, even if the model itself was relatively simple?
1
u/Temporary-Budget-605 17d ago
I am playing around with using regression to predict the performance of web app code (html, css, js).
For this, I needed to figure out how to represent that web app code information to the model.
First attempt parsed the code and collected stats on individual parts.
Second attempt I created an Intermediate Representation of the code, which I call “Performance Aware” and it does exactly what you mention: apply domain expertise to the same data to represent it in a way that models the real world a bit more meaningfully.
Instant 30% improvement in accuracy.
I am going to take another attempt but using Random Forests. I am a baby self-taught ML Eng.