The first question is often not the real problem

After 94 mentoring sessions, the recurring lesson: the model question usually hides a problem-framing question.

Problem FramingTarget DefinitionValidationData Quality

TL;DR: Most model problems are problem-framing problems in disguise. Before tuning hyperparameters, verify what one row represents, what the target means, whether every feature is knowable at decision time, whether the validation split mirrors reality, and whether the metric matches the business decision. Tuning improves a well-defined learning problem; it cannot repair a mis-specified one. The useful question is not “How do I improve this model?” but “What decision is this model meant to improve, and does my data represent that decision?”

The Problem

Someone asks: “My Random Forest accuracy is 62%. How do I improve it?” It sounds like a model-tuning question, and the easy answer is to suggest a grid search, a different algorithm, or more trees. After 94 mentoring sessions, I have learned that the first question is often not the real problem.

The model is usually the visible symptom. The learning problem underneath is what decides whether tuning can help at all.

The Approach

Before changing the algorithm, I slow the conversation down and walk through the framing of the learning problem. I ask the same six questions every time, because any one of them can invalidate the score before a single hyperparameter matters.

What does one training row represent?

The unit of analysis decides what the model can learn. A customer, a customer-month, and a single event are different problems with different leakage risks.

What exactly is the target?

A vague label produces a vague model. Define the event, the time window, and what counts as a positive or negative example.

Is the target available at prediction time?

If the outcome is only known after the decision, it cannot be a feature. This is where most silent information leakage enters.

Do the features describe the real decision context?

Features should mirror what a decision-maker actually knows when the prediction is made, not everything the database happens to contain.

Does the train-test split reflect reality?

Random splits on time-dependent data let the model peek into the future. The validation scheme should imitate how the model will be used.

Is accuracy the metric that matters?

Accuracy hides class imbalance and cost asymmetry. The metric should represent the business decision, not the convenience of the library default.

When I trace those answers, the fix is usually not in the algorithm. The recurring causes are an unclear target definition, features that miss the relevant behaviour, data-quality problems, information leakage, unrealistic validation, or a metric that does not match the business decision.

Outcome

In my mentoring work, the discussion has more often been about problem framing, feature design, validation, and data quality than about hyperparameter tuning. That does not mean tuning is unimportant. It means tuning is most useful once the learning problem itself is well defined.

When the framing is right, a modest model often beats a heavily tuned one built on a mis-specified target, and the improvement survives contact with production.

Key Takeaway

Design insight: Most model problems are problem-framing problems in disguise. Before tuning hyperparameters, verify what one row represents, what the target means, whether every feature is knowable at decision time, whether the validation split mirrors reality, and whether the metric matches the business decision. Tuning improves a well-defined learning problem; it cannot repair a mis-specified one. The useful question is not “How do I improve this model?” but “What decision is this model meant to improve, and does my data represent that decision?”

FAQ

What is the key takeaway from "Problem Framing Before Model Tuning"?

Most model problems are problem-framing problems in disguise. Before tuning hyperparameters, verify what one row represents, what the target means, whether every feature is knowable at decision time, whether the validation split mirrors reality, and whether the metric matches the business decision. Tuning improves a well-defined learning problem; it cannot repair a mis-specified one. The useful question is not “How do I improve this model?” but “What decision is this model meant to improve, and does my data represent that decision?”

Who wrote this and what is it about?

This was written by Mahmoud Trigui, Senior Data Scientist. After 94 mentoring sessions, one lesson repeats: most ML problems are problem framing, data quality, and validation issues, not model tuning.

Comments

ForecastingTime SeriesMachine LearningPredictive ModelingFeature EngineeringNLPLLM ApplicationsDocument AICustomer SegmentationTelecom AnalyticsAnomaly DetectionRecommendation SystemsGraph AnalyticsGeospatial AnalyticsStatistical AnalysisExperimentation & A/B TestingPythonRSQLDataikuShiny DashboardsStreamlit AppsData VisualizationProduction MLModel EvaluationDecision SystemsData AutomationBusiness Analytics