Machine Learning Workflow
The roadmap deliberately combines context, foundations, practical tools, task types, and workflow thinking. Knowing how to use a neural-network framework is one part of learning machine learning, not the whole process.
Beyond Model Construction
Machine learning is not only the act of building a model. It is a workflow of connected decisions. You first clarify the real-world problem, its inputs, and its target output. You then prepare the data, decide how success will be measured, develop a model, and watch for problems such as overfitting. Each decision affects the decisions that follow.
The Learning Roadmap
The surrounding learning path is staged. It begins with background on artificial intelligence, machine learning, and deep learning so that deep learning is placed in context. It then introduces the concepts needed to approach deep learning: tensors, tensor operations, gradient descent, and backpropagation. These concepts are followed by Keras, workstation setup, and practical neural-network work. Simple neural networks are then used for classification and regression tasks. Finally, the course broadens from individual examples to the canonical machine-learning workflow and its common pitfalls and solutions.
The roadmap deliberately combines context, foundations, practical tools, task types, and workflow thinking. Knowing how to use a neural-network framework is one part of learning machine learning, not the whole process.
The Workflow Spine
The canonical workflow connects four central ideas: defining the problem, deciding how success will be evaluated, engineering useful features, and fighting overfitting. Data preparation connects these decisions to model development. The workflow is therefore a sequence: define the task, prepare the data, choose the measure of success, develop a model, evaluate it, and use what you learn to guide further decisions.
The machine-learning workflow is a connected sequence of decisions that moves from a real-world problem and raw information toward a model whose results can be evaluated and improved.
From Raw Data to Model Input
Raw data does not move directly into a model as one undifferentiated step. The preparation stage can involve cleaning the available data, transforming it, preparing features, and separating data into training and evaluation sets. These stages create a usable path from raw information to a model. Feature engineering belongs here because it concerns preparing useful features for the machine-learning task.
Choosing Success
A model cannot be judged without a measure of success. The measure should be chosen as part of defining the machine-learning problem, before results are evaluated. It establishes what the project will treat as a successful result. If the problem definition changes, the way success is judged may also need to change.
Deciding What to Measure First
A team wants to create a machine-learning solution for a real-world task. The team has collected raw data but has not stated the target output or selected a measure of success.
- 1Clarify the task
State the real-world problem, identify the inputs the model will receive, and specify the target output.
- 2Choose success
Select a measure of success before judging model results. The measure should represent what the project treats as a successful result.
- 3Prepare the data
Clean and transform the raw data, prepare useful features, and separate the data into training and evaluation sets.
- 4Develop and evaluate
Develop a model using the prepared training data, then evaluate its results using the selected measure.
- 5Check for overfitting
Ask whether the model has become too closely fitted to the training data instead of addressing the broader machine-learning problem.
The team should not begin by selecting a model. It should first define the problem and target output, choose the measure of success, prepare the data, develop and evaluate the model, and consider overfitting.
Classification and Regression
Classification and regression are two broad task types connected to the neural-network stage of the roadmap. The course uses simple neural networks for both classification and regression tasks. They are not separate from the workflow: each is a kind of machine-learning problem whose inputs, target output, data preparation, and measure of success must be defined before model results can be judged.
The task label does not remove the need for workflow thinking. Whether the task is classification or regression, the project still needs a defined problem, prepared data, a chosen measure of success, and attention to overfitting.
Recognizing Overfitting
Overfitting occurs when a model fits the training data too closely. The workflow deliberately includes developing a model that overfits the training data because this makes the danger visible. A close fit to the data used for training is not automatically the same as solving the broader machine-learning problem. Evaluation must therefore consider how the model performs beyond the training data.
Common Workflow Mistakes
Common mistake Starting with a model before defining the real-world problem
What it looks likeThe team has raw data but has not stated the target output.
Why it failsWithout a defined problem, inputs, and target output, the project has no clear task to solve.
Do this insteadDefine the problem and target output before developing or evaluating a model.
Common mistake Treating data preparation as one automatic step
What it looks likeThe team sends raw data directly toward model development.
Why it failsThe workflow identifies cleaning, transformation, feature preparation, and separation into training and evaluation sets as preparation stages.
Do this insteadTrace the data through the preparation stages required by the task.
Common mistake Choosing a measure of success after seeing model results
What it looks likeThe team evaluates a model first and decides afterward what counts as success.
Why it failsThe measure of success is part of defining the machine-learning problem, not an afterthought.
Do this insteadChoose the measure before judging results.
Common mistake Treating a close training fit as the complete solution
What it looks likeThe model fits the training data very closely, so the team stops investigating.
Why it failsOverfitting can make a model closely fitted to training data without solving the broader machine-learning problem.
Do this insteadConsider performance beyond the training data and keep overfitting in the evaluation process.
Apply the Sequence
A team wants to build a machine-learning solution for a new real-world task. It has collected raw data, but it has not stated the target output, selected a measure of success, prepared the data, or considered overfitting. Put the team’s next decisions in a sensible workflow order, and explain what should be checked after model development.
Hints
- Begin with the real-world problem, its inputs, and its target output.
- Choose the measure of success before evaluating results.
- Include cleaning, transformation, feature preparation, and separation into training and evaluation sets.
- After model development, check whether the model fits the training data too closely.
A Correct Order of Thinking
Reorder these project actions: evaluate results, define the target output, prepare the data, choose a measure of success, develop a model, and check for overfitting.
- 11. Define the target output
Clarify what the real-world task should produce and identify the relevant inputs.
- 22. Prepare the data
Clean and transform the raw data, prepare features, and separate training and evaluation sets.
- 33. Choose a measure of success
Decide how the project will judge whether the result is successful.
- 44. Develop the model
Use the prepared data to develop a model for the defined task.
- 55. Evaluate results
Judge the model using the measure chosen earlier.
- 66. Check for overfitting
Determine whether the model has become too closely fitted to the training data.
The workflow moves from problem definition to preparation, evaluation planning, model development, evaluation, and attention to overfitting. The results can then inform further decisions rather than ending the workflow.
Workflow Takeaways
- 1The learning roadmap begins with AI, machine learning, and deep-learning context, then introduces tensors, tensor operations, gradient descent, and backpropagation before moving to Keras and practical neural-network work.
- 2Classification and regression are task types supported by the simple neural-network stage, while the canonical workflow explains how to approach the wider project.
- 3A machine-learning project begins by defining the real-world problem, inputs, and target output.
- 4Data preparation can include cleaning, transformation, feature preparation, and separation into training and evaluation sets.
- 5A measure of success must be chosen before evaluating results, and overfitting must be treated as a risk when a model fits training data too closely.
At a glance
- Machine learning is a workflow of connected decisions, not only model construction.
- The roadmap moves from AI context through tensors, tensor operations, gradient descent, backpropagation, Keras, workstation setup, and neural-network tasks.
- Problem definition, data preparation, feature engineering, evaluation, and overfitting belong to one connected process.
- A measure of success must be chosen before model results are judged.
- Overfitting means fitting the training data too closely, so training fit alone is not enough evidence of success.