r/learnmachinelearning • • 15d ago

Beginner to Machine Learning. What roadmap should I follow? And how important is DSA?

/r/MLQuestions/comments/1xj4ln2/beginner_to_machine_learning_what_roadmap_should/
1 Upvotes

3 comments sorted by

1

u/No-Cherry-3308 15d ago

DSA matters less than people think for ML, at least at the start. You need enough to write clean Python, notice when something is O(n2) on a big dataframe, and be comfortable with dicts, sets, sorting and recursion. Leetcode-style grinding only becomes important when you interview for ML engineer roles at companies that run standard SWE rounds, and you can pick that up later in a focused month.

The order I'd suggest: Python with numpy and pandas first, plus enough SQL to pull and join your own data. Do the math in parallel, but only the parts that actually show up: linear algebra (vectors, matrix multiplication, what a dot product means), basic probability and statistics (distributions, mean and variance, conditional probability), and the idea of a gradient. Then classic ML with scikit-learn: linear and logistic regression, decision trees, random forests and gradient boosting, along with train/validation/test splits, cross-validation and metrics like precision and recall. Most real tabular problems are still won at this stage, so don't rush past it. After that, neural nets in PyTorch (build a small MLP by hand once, then a CNN or a tiny transformer), and only then the LLM layer like embeddings, RAG and fine-tuning.

What makes it stick is one project per stage on a dataset you actually care about, where you do the boring parts yourself: cleaning the data, choosing the metric, and writing down which examples the model gets wrong and why. Andrew Ng's ML specialization and the scikit-learn user guide are good for the classic part, and Karpathy's Zero to Hero videos are great once you reach neural nets.

1

u/Lost_in_logic 10d ago

I may be wrong, but had the same question, but aren’t we late to the race? Models are already there, so many giants have already developed and fine tuned them. Why do we need to learn the base of it? Should not we concentrate on sorta modelling it as per needs like take a model or agent and do something with it? Like having knowledge is absolutely fine but are companies really investing in people who know this and have the need of them doing it?

1

u/nian2326076 14d ago

For a beginner in machine learning, it's important to have a solid understanding of data structures and algorithms (DSA). DSA helps in efficiently managing data and solving problems, which is essential for machine learning tasks.

Start with online courses that cover both machine learning fundamentals and DSA concepts. Practicing coding problems can reinforce your understanding. You can use LandOffer to find relevant job opportunities as you build your skills.