Applied Machine Learning Concepts
Problem Framing ML Choices
From Goal to Task
The first, most critical step in any machine learning project isn't about algorithms or code. It's about translation. You start with a business need, like 'reduce customer churn' or 'increase sales', and translate it into a precise, solvable machine learning task. This reframing is everything.
Think of it as choosing the right tool for the job. You wouldn't use a hammer to cut a piece of wood. Similarly, the structure of your problem dictates the type of ML task you'll employ.
Here are the primary tasks you'll translate business goals into:
-
Regression: Use this when you need to predict a continuous numerical value. The core question is "How much?" or "How many?". For example, forecasting next quarter's sales figures, predicting the price of a house based on its features, or estimating the delivery time for a package.
-
Classification: This is your tool for assigning an item to a specific category. The question is "Which class?" or "Is this A or B?". Common applications include identifying spam emails (spam vs. not spam), diagnosing a disease (positive vs. negative), or categorising customer support tickets.
-
Clustering: When you don't have predefined categories but want to discover natural groupings in your data, you use clustering. The question is "What are the natural segments here?". This is useful for customer segmentation, grouping similar documents, or identifying distinct patterns of user behaviour.
-
Anomaly Detection: This task focuses on identifying rare items or events that deviate significantly from the majority of the data. The core question is "Is this weird?". It's the foundation for fraud detection systems, monitoring for network intrusions, or finding faulty components in a manufacturing line.
-
Recommendation: When the goal is to predict the preference a user would have for an item, you're dealing with a recommendation task. The question is "What will this user like?". This powers everything from Netflix movie suggestions to Amazon product recommendations.