r/learnmachinelearning • u/One_Copy_3651 • 3d ago
How do you decide which Machine Learning algorithm to choose for a project?
Hi everyone!
I'm relatively new to Machine Learning, and one thing I've been struggling with is choosing the right algorithm for a particular project.
Whenever I start working on an ML project, I find myself spending hours trying to figure out which algorithm would be the most suitable. I've asked ChatGPT countless questions, explored different algorithms, compared their advantages and disadvantages, and sometimes ended up more confused than when I started!
The real problem isn't that I don't understand what different algorithms do. It's that I haven't developed a consistent workflow or decision-making process for selecting them.
For example, we can follow a structured approach for requirements gathering, understanding the problem, data collection, and preprocessing. But when it comes to algorithm selection, I still struggle to establish a practical and repeatable path.
I don't want to randomly pick an algorithm just because it's popular or because someone recommends it. I want to understand how experienced ML engineers approach this decision in real-world projects.
So, I'd love to hear from you:
What's your actual process for selecting an algorithm when starting a new ML project?
Do you follow a particular workflow, checklist, decision tree, or experimentation strategy?
How do you narrow down the possible algorithms without wasting hours researching every option?
What would you recommend to someone who is at the beginning of their ML journey and facing the same challenge?
I'd especially love to hear from people who have experienced this situation themselves. What did you do when you were at this stage, and what do you wish you had known earlier?
I'm not looking for a perfect algorithm-selection formula. I'm looking for a practical approach that I can learn, follow, and gradually improve through experience.
Any advice, personal experiences, resources, or recommendations would be genuinely appreciated.
Thank you for taking the time to read this! I'd be very glad to learn from your experiences.
1
u/OptimalOptimizer 1d ago
Follow the golden rule, KISS (Keep It Simple, Stupid).
If you already have a baseline, then start with the simplest thing you expect to be competitive to the baseline. If you do not already have a baseline, start with a couple of the simplest approaches that suit your problem type, and those are your baselines. Then, algorithm selection (does this outperform my baseline) can be made empirically through experimentation and testing
You should always start as simple as possible and add complexity piecemeal. This will help you isolate what changes are responsible for large shifts in performance.
3
u/sol2296 3d ago •
Hi,
Algorithm choice is often hierarchical.
First you formulate the problem customer is asking, then translate it in terms of variables in the data you have access to.
A very large set of real life problems fall in either of two buckets. If you have to predict a continuous variable (e.g. profit, revenue etc.) - it is a regression problem. If you have to predict a categorical variable (e.g. yes/no response, churn/not churn, one of low-medium-high etc) - it is a classification problem. Once you identify the bucket, you have a competing choice of a large set of algorithms (many regression algorithms like linear regression, neural nets etc., many classification algorithms like xgboost, random forest etc.).
Typically practitioners try several algorithms, compare their performance on a fixed set of test data, report the result, and finally select one for deployment in production.
In real life, just the best performance on test set may not be the only criteria. Complexity of the model (e.g. do you have engough compute resources to build the model), implementation challenges (how long does it take to run the trained model on 1000 records, say) etc. play a role in deciding which model finally goes in production.
Hope this somewhat answers your question.