{"id":1872,"date":"2025-02-15T07:02:20","date_gmt":"2025-02-15T07:02:20","guid":{"rendered":"https:\/\/mailitics.com\/index.php\/2025\/02\/15\/roadmap-to-becoming-a-data-scientist-part-4-advanced-machine-learning\/"},"modified":"2025-02-15T07:02:20","modified_gmt":"2025-02-15T07:02:20","slug":"roadmap-to-becoming-a-data-scientist-part-4-advanced-machine-learning","status":"publish","type":"post","link":"https:\/\/mailitics.com\/index.php\/2025\/02\/15\/roadmap-to-becoming-a-data-scientist-part-4-advanced-machine-learning\/","title":{"rendered":"Roadmap to Becoming a Data Scientist, Part 4: Advanced Machine Learning"},"content":{"rendered":"<p>    Roadmap to Becoming a Data Scientist, Part 4: Advanced Machine Learning<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<h2 class=\"wp-block-heading\">Introduction<\/h2>\n<p class=\"wp-block-paragraph\">Data science is undoubtedly one of the most fascinating fields today.\u00a0Following significant breakthroughs in machine learning about a decade ago, data science has surged in popularity within the tech community.\u00a0Each year, we witness increasingly powerful tools that once seemed unimaginable.\u00a0Innovations such as the\u00a0<em>Transformer architecture<\/em>,\u00a0<em>ChatGPT<\/em>, the\u00a0<em>Retrieval-Augmented Generation (RAG<\/em>) framework, and state-of-the-art\u00a0<em><a href=\"https:\/\/towardsdatascience.com\/tag\/computer-vision\/\" title=\"Computer Vision\">Computer Vision<\/a> models<\/em>\u00a0\u2014 including\u00a0<em>GANs<\/em>\u00a0\u2014 have had a profound impact on our world.<\/p>\n<p class=\"wp-block-paragraph\">However, with the abundance of tools and the ongoing hype surrounding AI, it can be overwhelming \u2014 especially for beginners \u2014 to determine which skills to prioritize when aiming for a career in data science.\u00a0Moreover, this field is highly demanding, requiring substantial dedication and perseverance.<\/p>\n<p class=\"wp-block-paragraph\">The first three parts of this series outlined the necessary skills to become a data scientist in three key areas: <a href=\"https:\/\/towardsdatascience.com\/roadmap-to-becoming-a-data-scientist-part-1-maths-2dc9beb69b27\/\">math<\/a>, <a href=\"https:\/\/towardsdatascience.com\/roadmap-to-becoming-a-data-scientist-part-2-software-engineering-e2fee3fe4d71\/\">software engineering<\/a>, and <a href=\"https:\/\/towardsdatascience.com\/roadmap-to-becoming-a-data-scientist-part-3-machine-learning-628248c96cb5\/\">machine learning<\/a>.\u00a0While knowledge of classical <a href=\"https:\/\/towardsdatascience.com\/tag\/machine-learning\/\" title=\"Machine Learning\">Machine Learning<\/a> and neural network algorithms is an excellent starting point for aspiring data specialists, there are still many\u00a0important topics in machine learning that must be mastered to work on more advanced projects.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>This article will focus solely on the math skills necessary to start a career in Data Science.\u00a0Whether pursuing this path is a worthwhile choice based on your background and other factors will be discussed in a separate article.<\/em><\/p>\n<\/blockquote>\n<h2 class=\"wp-block-heading\">The importance of learning evolution of methods in machine learning<\/h2>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>The section below provides information about the evolution of methods in natural language processing (NLP).<\/em><\/p>\n<\/blockquote>\n<p class=\"wp-block-paragraph\">In contrast to previous articles in this series, I have decided to change the format in which I present the necessary skills for aspiring data scientists. Instead of directly listing specific competencies to develop and the motivation behind mastering them, I will briefly outline the most important approaches, presenting them in chronological order as they have been developed and used over the past decades in machine learning.<\/p>\n<p class=\"wp-block-paragraph\">The reason is that I believe it is crucial to study these algorithms from the very beginning. In machine learning, many new methods are built upon older approaches, which is especially true for <a href=\"https:\/\/towardsdatascience.com\/tag\/nlp\/\" title=\"NLP\">NLP<\/a> and computer vision.<\/p>\n<p class=\"wp-block-paragraph\">For example, jumping directly into the implementation details of modern\u00a0large language models (LLMs)\u00a0without any preliminary knowledge may make it very difficult for beginners to grasp the motivation and underlying ideas of specific mechanisms.<\/p>\n<p class=\"wp-block-paragraph\"><em>Given this, in the next two sections, I will highlight in\u00a0<\/em><strong><em>bold<\/em><\/strong><em>\u00a0the key concepts that should be studied.<\/em><\/p>\n<h2 class=\"wp-block-heading\"># 04. NLP<\/h2>\n<p class=\"wp-block-paragraph\"><strong>Natural language processing (NLP)<\/strong>\u00a0is a broad field that focuses on processing textual information. Machine learning algorithms cannot work directly with raw text, which is why text is usually preprocessed and converted into numerical vectors that are then fed into neural networks.<\/p>\n<p class=\"wp-block-paragraph\">Before being converted into vectors, words undergo\u00a0<strong>preprocessing<\/strong>, which includes simple techniques such as\u00a0<strong>parsing<\/strong>,\u00a0<strong>stemming, lemmatization, normalization<\/strong>, or removing\u00a0<strong>stop words<\/strong>. After preprocessing, the resulting text is encoded into\u00a0<strong>tokens<\/strong>. Tokens represent the smallest textual elements in a collection of documents. Generally, a token can be a part of a word, a sequence of symbols, or an individual symbol. Ultimately, tokens are converted into numerical vectors.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f4f3ed\" data-has-transparency=\"true\" style=\"--dominant-color: #f4f3ed;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_VY6Do6Dm95oufVv8cgwCVg-1024x487.png?resize=1024%2C487&#038;ssl=1\" alt=\"\" class=\"wp-image-597899 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_VY6Do6Dm95oufVv8cgwCVg-1024x487.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_VY6Do6Dm95oufVv8cgwCVg-300x143.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_VY6Do6Dm95oufVv8cgwCVg-768x365.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_VY6Do6Dm95oufVv8cgwCVg.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">NLP roadmap<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">The\u00a0<strong>bag of words<\/strong>\u00a0method is the most basic way to encode tokens, focusing on counting the frequency of tokens in each document. However, in practice, this is usually not sufficient, as it is also necessary to account for token importance \u2014 a concept introduced in the\u00a0<strong>TF-IDF<\/strong>\u00a0and\u00a0<strong>BM25<\/strong>\u00a0methods. While TF-IDF improves upon the naive counting approach of bag of words, researchers have developed a completely new approach called embeddings.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Embeddings<\/strong>\u00a0are numerical vectors whose components preserve the semantic meanings of words. Because of this, embeddings play a crucial role in NLP, enabling input data to be trained or used for model inference. Additionally, embeddings can be used to compare text similarity, allowing for the retrieval of the most relevant documents from a collection.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>Embeddings can also be used to encode other unstructured data, including images, audio, and videos.<\/em><\/p>\n<\/blockquote>\n<p class=\"wp-block-paragraph\">As a field, NLP has been evolving rapidly over the last 10\u201320 years to efficiently solve various text-related problems. Complex tasks like text translation and text generation were initially addressed using\u00a0<strong>recurrent neural networks (RNNs)<\/strong>, which introduced the concept of memory, allowing neural networks to capture and retain key contextual information in long documents.<\/p>\n<p class=\"wp-block-paragraph\">Although RNN performance gradually improved, it remained suboptimal for certain tasks. Moreover, RNNs are relatively slow, and their sequential prediction process does not allow for parallelization during training and inference, making them less efficient.<\/p>\n<p class=\"wp-block-paragraph\">Additionally, the original Transformer architecture can be decomposed into two separate modules:\u00a0<strong>BERT<\/strong>\u00a0and\u00a0<strong>GPT<\/strong>. Both of these form the foundation of the most state-of-the-art models used today to solve various NLP problems. Understanding their principles is valuable knowledge that will help learners advance further when studying or working with other\u00a0<strong>large language models (LLMs)<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"faeecb\" data-has-transparency=\"true\" style=\"--dominant-color: #faeecb;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"715\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_ESW2UvdTV7k4eyUTP8JykQ-1024x715.png?resize=1024%2C715&#038;ssl=1\" alt=\"\" class=\"wp-image-597900 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_ESW2UvdTV7k4eyUTP8JykQ-1024x715.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_ESW2UvdTV7k4eyUTP8JykQ-300x210.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_ESW2UvdTV7k4eyUTP8JykQ-768x537.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_ESW2UvdTV7k4eyUTP8JykQ.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Transformer architecture<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">When it comes to LLMs, I strongly recommend studying the evolution of at least the first three GPT models, as they have had a significant impact on the AI world we know today. In particular, I would like to highlight the concepts of\u00a0<strong>few-shot<\/strong>\u00a0and\u00a0<strong>zero-shot learning<\/strong>, introduced in\u00a0GPT-2, which enable LLMs to solve text generation tasks without explicitly receiving any training examples for them.<\/p>\n<p class=\"wp-block-paragraph\">Another important technique developed in recent years is\u00a0<strong>retrieval-augmented generation (RAG)<\/strong>.\u00a0<em>The main limitation of LLMs is that they are only aware of the context used during their training.<\/em>\u00a0As a result, they lack knowledge of any information beyond their training data.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f9f3da\" data-has-transparency=\"true\" style=\"--dominant-color: #f9f3da;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"173\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_4WloNtbqf0UtlZoc0vdBog-1024x173.png?resize=1024%2C173&#038;ssl=1\" alt=\"\" class=\"wp-image-597901 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_4WloNtbqf0UtlZoc0vdBog-1024x173.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_4WloNtbqf0UtlZoc0vdBog-300x51.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_4WloNtbqf0UtlZoc0vdBog-768x130.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_4WloNtbqf0UtlZoc0vdBog.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Example of a RAG pipeline<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">The retriever converts the input prompt into an embedding, which is then used to query a vector database. The database returns the most relevant context based on the similarity to the embedding. This retrieved context is then combined with the original prompt and passed to a generative model. The model processes both the initial prompt and the additional context to generate a more informed and contextually accurate response.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>A good example of this limitation is the first version of the ChatGPT model, which was trained on data up to the year 2022 and had no knowledge of events that occurred from 2023 onward.<\/em><\/p>\n<\/blockquote>\n<p class=\"wp-block-paragraph\">To address this limitation, OpenAI researchers developed a RAG pipeline, which includes a constantly updated database containing new information from external sources. When ChatGPT is given a task that requires external knowledge, it queries the database to retrieve the most relevant context and integrates it into the final prompt sent to the machine learning model.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f3f1eb\" data-has-transparency=\"true\" style=\"--dominant-color: #f3f1eb;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"227\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_GU4fZoSM-gEXARrgT51wtw-1024x227.png?resize=1024%2C227&#038;ssl=1\" alt=\"\" class=\"wp-image-597902 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_GU4fZoSM-gEXARrgT51wtw-1024x227.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_GU4fZoSM-gEXARrgT51wtw-300x66.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_GU4fZoSM-gEXARrgT51wtw-768x170.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_GU4fZoSM-gEXARrgT51wtw.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<p class=\"wp-block-paragraph\">The goal of distillation is to create a smaller model that can imitate a larger one. In practice, this means that if a large model makes a prediction, the smaller model is expected to produce a similar result.<\/p>\n<p class=\"wp-block-paragraph\">In the modern era, LLM development has led to models with millions or even billions of parameters. As a consequence, the overall size of these models may exceed the hardware limitations of standard computers or small portable devices, which come with many constraints.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f6f2e6\" data-has-transparency=\"true\" style=\"--dominant-color: #f6f2e6;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"440\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_EvNI75JT6V5U6twNOzOMYg-1024x440.png?resize=1024%2C440&#038;ssl=1\" alt=\"\" class=\"wp-image-597903 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_EvNI75JT6V5U6twNOzOMYg-1024x440.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_EvNI75JT6V5U6twNOzOMYg-300x129.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_EvNI75JT6V5U6twNOzOMYg-768x330.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_EvNI75JT6V5U6twNOzOMYg.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<p class=\"wp-block-paragraph\">Quantization is the process of reducing the memory required to store numerical values representing a model\u2019s weights.<\/p>\n<p class=\"wp-block-paragraph\">This is where optimization techniques become particularly useful, allowing LLMs to be compressed without significantly compromising their performance. The most commonly used techniques today include\u00a0<strong>distillation<\/strong>,<strong>\u00a0quantization<\/strong>, and\u00a0<strong>pruning<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f9f6eb\" data-has-transparency=\"true\" style=\"--dominant-color: #f9f6eb;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"468\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1__SgZlrqT5qoEG5vn95IH8A-1024x468.png?resize=1024%2C468&#038;ssl=1\" alt=\"\" class=\"wp-image-597904 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1__SgZlrqT5qoEG5vn95IH8A-1024x468.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1__SgZlrqT5qoEG5vn95IH8A-300x137.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1__SgZlrqT5qoEG5vn95IH8A-768x351.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1__SgZlrqT5qoEG5vn95IH8A.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<p class=\"wp-block-paragraph\">Pruning refers to discarding the least important weights of a model.<\/p>\n<p class=\"wp-block-paragraph\">Fine-tuning<\/p>\n<p class=\"wp-block-paragraph\">Regardless of the area in which you wish to specialize, knowledge of\u00a0<strong>fine-tuning<\/strong>\u00a0is a must-have skill! Fine-tuning is a powerful concept that allows you to efficiently adapt a pre-trained model to a new task.<\/p>\n<p class=\"wp-block-paragraph\">Fine-tuning is especially useful when working with very large models. For example, imagine you want to use BERT to perform semantic analysis on a specific dataset. While BERT is trained on general data, it might not fully understand the context of your dataset. At the same time, training BERT from scratch for your specific task would require a massive amount of resources.<\/p>\n<p class=\"wp-block-paragraph\">Here is where fine-tuning comes in: it involves taking a pre-trained BERT (or another model) and freezing some of its layers (usually those at the beginning). As a result, BERT is retrained, but this time only on the new dataset provided. Since BERT updates only a subset of its weights and the new dataset is likely much smaller than the original one BERT was trained on, fine-tuning becomes a very efficient technique for adapting BERT\u2019s rich knowledge to a specific domain.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>Fine-tuning is widely used not only in NLP but also across many other domains.<\/em><\/p>\n<\/blockquote>\n<h2 class=\"wp-block-heading\"># 05. Computer vision<\/h2>\n<p class=\"wp-block-paragraph\">As the name suggests,\u00a0<strong>computer vision (CV)<\/strong>\u00a0involves analyzing images and videos using machine learning. The most common tasks include image classification, object detection, image segmentation, and generation.<\/p>\n<p class=\"wp-block-paragraph\">Most CV algorithms are based on neural networks, so it is essential to understand how they work in detail. In particular, CV uses a special type of network called\u00a0<strong>convolutional neural networks (CNNs)<\/strong>. These are similar to fully connected networks, except that they typically begin with a set of specialized mathematical operations called\u00a0<strong>convolutions<\/strong>.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f5f3eb\" data-has-transparency=\"true\" style=\"--dominant-color: #f5f3eb;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"522\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_zDHLfyxaJ62vdSXHKotnnw-1024x522.png?resize=1024%2C522&#038;ssl=1\" alt=\"\" class=\"wp-image-597905 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_zDHLfyxaJ62vdSXHKotnnw-1024x522.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_zDHLfyxaJ62vdSXHKotnnw-300x153.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_zDHLfyxaJ62vdSXHKotnnw-768x391.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_zDHLfyxaJ62vdSXHKotnnw.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Computer vision roadmap<\/figcaption><\/figure>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>In simple terms, convolutions act as filters, enabling the model to extract the most important features from an image, which are then passed to fully connected layers for further analysis.<\/em><\/p>\n<\/blockquote>\n<p class=\"wp-block-paragraph\">The next step is to study the most popular CNN architectures for classification tasks, such as\u00a0<strong>AlexNet, VGG, Inception, ImageNet<\/strong>, and\u00a0<strong>ResNet<\/strong>.<\/p>\n<p class=\"wp-block-paragraph\">Speaking of the object detection task, the\u00a0<strong>YOLO<\/strong>\u00a0algorithm is a clear winner. It is not necessary to study all of the dozens of versions of YOLO. In reality, going through the original paper of the first YOLO should be sufficient to understand how a relatively difficult problem like object detection is elegantly transformed into both classification and regression problems. This approach in YOLO also provides a nice intuition on how more complex CV tasks can be reformulated in simpler terms.<\/p>\n<p class=\"wp-block-paragraph\">While there are many architectures for performing image segmentation, I would strongly recommend learning about\u00a0<strong>UNet<\/strong>, which introduces an encoder-decoder architecture.<\/p>\n<p class=\"wp-block-paragraph\">Finally, image generation is probably one of the most challenging tasks in CV. Personally, I consider it an optional topic for learners, as it involves many advanced concepts. Nevertheless, gaining a high-level intuition of how\u00a0<strong>generative adversial networks (GAN)<\/strong>\u00a0function to generate images is a good way to broaden one\u2019s horizons.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><em>In some problems, the training data might not be enough to build a performant model. In such cases, the data augmentation technique is commonly used. It involves the artificial generation of training data from already existing data (images). By feeding the model more diverse data, it becomes capable of learning and recognizing more patterns.<\/em><\/p>\n<\/blockquote>\n<h2 class=\"wp-block-heading\"># 06. Other areas<\/h2>\n<p class=\"wp-block-paragraph\">It would be very hard to present in detail the <a href=\"https:\/\/towardsdatascience.com\/tag\/roadmaps\/\" title=\"Roadmaps\">Roadmaps<\/a> for all existing machine learning domains in a single article. That is why, in this section, I would like to briefly list and explain some of the other most popular areas in data science worth exploring.<\/p>\n<p class=\"wp-block-paragraph\">First of all,\u00a0<strong>recommender systems (RecSys)<\/strong>\u00a0have gained a lot of popularity in recent years. They are increasingly implemented in online shops, social networks, and streaming services. The key idea of most algorithms is to take a large initial matrix of all users and items and decompose it into a product of several matrices in a way that associates every user and every item with a high-dimensional embedding. This approach is very flexible, as it then allows different types of comparison operations on embeddings to find the most relevant items for a given user. Moreover, it is much more rapid to perform analysis on small matrices rather than the original, which usually tends to have huge dimensions.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"fceeb6\" data-has-transparency=\"true\" style=\"--dominant-color: #fceeb6;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"517\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_CFUJMURur5USpzJu2SZDdA-1024x517.png?resize=1024%2C517&#038;ssl=1\" alt=\"\" class=\"wp-image-597906 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_CFUJMURur5USpzJu2SZDdA-1024x517.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_CFUJMURur5USpzJu2SZDdA-300x152.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_CFUJMURur5USpzJu2SZDdA-768x388.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_CFUJMURur5USpzJu2SZDdA.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Matrix decomposition in recommender systems is one of the most commonly used methods<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\"><strong>Ranking<\/strong> often goes hand in hand with RecSys. When a RecSys has identified a set of the most relevant items for the user, ranking algorithms are used to sort them to determine the order in which they will be shown or proposed to the user. A good example of their usage is search engines, which filter query results from top to bottom on a web page.<\/p>\n<p class=\"wp-block-paragraph\">Closely related to ranking, there is also a\u00a0<strong>matching<\/strong>\u00a0problem that aims to optimally map objects from two sets, A and B, in a way that, on average, every object pair<em>\u00a0(a, b)<\/em>\u00a0is mapped \u201cwell\u201d according to a matching criterion. A use case example might include distributing a group of students to different university disciplines, where the number of spots in each class is limited.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Clustering<\/strong>\u00a0is an unsupervised machine learning task whose objective is to split a dataset into several regions (clusters), with each dataset object belonging to one of these clusters. The splitting criteria can vary depending on the task. Clustering is useful because it allows for grouping similar objects together. Moreover, further analysis can be applied to treat objects in each cluster separately.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f6f6f5\" data-has-transparency=\"true\" style=\"--dominant-color: #f6f6f5;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"406\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_1dyg_PBZFUNoRw_B8oczpw-1-1024x406.png?resize=1024%2C406&#038;ssl=1\" alt=\"\" class=\"wp-image-597908 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_1dyg_PBZFUNoRw_B8oczpw-1-1024x406.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_1dyg_PBZFUNoRw_B8oczpw-1-300x119.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_1dyg_PBZFUNoRw_B8oczpw-1-768x304.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_1dyg_PBZFUNoRw_B8oczpw-1.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<p class=\"wp-block-paragraph\">The goal of clustering is to group dataset objects (on the left) into several categories (on the right) based on their similarity.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Dimensionality reduction<\/strong>\u00a0is another unsupervised problem, where the goal is to compress an input dataset. When the dimensionality of the dataset is large, it takes more time and resources for machine learning algorithms to analyze it. By identifying and removing noisy dataset features or those that do not provide much valuable information, the data analysis process becomes considerably easier.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Similarity search<\/strong>\u00a0is an area that focuses on designing algorithms and data structures (indexes) to optimize searches in a large database of embeddings (vector database). More precisely, given an input embedding and a vector database, the goal is to\u00a0<em>approximately<\/em>\u00a0find the most similar embedding in the database relative to the input embedding.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"fcf0c0\" data-has-transparency=\"true\" style=\"--dominant-color: #fcf0c0;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"270\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_eRi8wzaKmq6UjYS8WrUloQ-1024x270.png?resize=1024%2C270&#038;ssl=1\" alt=\"\" class=\"wp-image-597909 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_eRi8wzaKmq6UjYS8WrUloQ-1024x270.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_eRi8wzaKmq6UjYS8WrUloQ-300x79.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_eRi8wzaKmq6UjYS8WrUloQ-768x202.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_eRi8wzaKmq6UjYS8WrUloQ.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><\/figure>\n<p class=\"wp-block-paragraph\">The goal of similarity search is to approximately find the most similar embedding in a vector database relative to a query embedding.<\/p>\n<p class=\"wp-block-paragraph\">The word \u201capproximately\u201d means that the search is not guaranteed to be 100% precise. Nevertheless, this is the main idea behind similarity search algorithms \u2014 sacrificing a bit of accuracy in exchange for significant gains in prediction speed or data compression.<\/p>\n<p class=\"wp-block-paragraph\"><strong>Time series analysis<\/strong>\u00a0involves studying the behavior of a target variable over time. This problem can be solved using classical tabular algorithms. However, the presence of time introduces new factors that cannot be captured by standard algorithms. For instance:<\/p>\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">the target variable can have an overall\u00a0<strong>trend<\/strong>, where in the long term its values increase or decrease\u00a0<em>(e.g., the average yearly temperature rising due to global warming)<\/em>.<\/li>\n<li class=\"wp-block-list-item\">the target variable can have a\u00a0<strong>seasonality<\/strong>\u00a0which makes its values change based on the currently given period\u00a0<em>(e.g. temperature is lower in winter and higher in summer)<\/em>.<\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\">Most of the time series models take both of these factors into account. In general, time series models are mainly used a lot in financial, stock or demographic analysis.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f9f8f6\" data-has-transparency=\"true\" style=\"--dominant-color: #f9f8f6;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_t3bmrEVEOcU3kDu58XGcfw-1024x460.png?resize=1024%2C460&#038;ssl=1\" alt=\"\" class=\"wp-image-597910 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_t3bmrEVEOcU3kDu58XGcfw-1024x460.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_t3bmrEVEOcU3kDu58XGcfw-300x135.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_t3bmrEVEOcU3kDu58XGcfw-768x345.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_t3bmrEVEOcU3kDu58XGcfw.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Time series data if often decomposed in several components which include trend and seasonality.<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">Another advanced area I would recommend exploring is\u00a0<strong>reinforcement learning<\/strong>, which fundamentally changes the algorithm design compared to classical machine learning.\u00a0In simple terms, its goal is to train an agent in an environment to make optimal decisions based on a reward system (also known as the\u00a0<em>\u201ctrial and error approach\u201d<\/em>).\u00a0By taking an action, the agent receives a reward, which helps it understand whether the chosen action had a positive or negative effect.\u00a0After that, the agent slightly adjusts its strategy, and the entire cycle repeats.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"f9f3d8\" data-has-transparency=\"true\" style=\"--dominant-color: #f9f3d8;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"441\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_2wa_OzNM5VZnLC8tpk5ezQ-1024x441.png?resize=1024%2C441&#038;ssl=1\" alt=\"\" class=\"wp-image-597911 has-transparency\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_2wa_OzNM5VZnLC8tpk5ezQ-1024x441.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_2wa_OzNM5VZnLC8tpk5ezQ-300x129.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_2wa_OzNM5VZnLC8tpk5ezQ-768x331.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_2wa_OzNM5VZnLC8tpk5ezQ.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Reinforcement learning framework.\u00a0Image adopted by the author.\u00a0Source:\u00a0<a href=\"https:\/\/web.stanford.edu\/class\/psych209\/Readings\/SuttonBartoIPRLBook2ndEd.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Reinforcement Learning.\u00a0An Introduction.\u00a0Second Edition | Richard S. Sutton and Andrew G.\u00a0Barto<\/a><\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">Reinforcement learning is particularly popular in complex environments where classical algorithms are not capable of solving a problem.\u00a0Given the complexity of reinforcement learning algorithms and the computational resources they require, this area is not yet fully mature, but it has high potential to gain even more popularity in the future.<\/p>\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" data-dominant-color=\"eeeeee\" data-has-transparency=\"false\" style=\"--dominant-color: #eeeeee;\" loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"198\" src=\"https:\/\/i0.wp.com\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_8SCcMHM73Ng00meh3YjRSw-1024x198.png?resize=1024%2C198&#038;ssl=1\" alt=\"\" class=\"wp-image-597912 not-transparent\" srcset=\"https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_8SCcMHM73Ng00meh3YjRSw-1024x198.png 1024w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_8SCcMHM73Ng00meh3YjRSw-300x58.png 300w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_8SCcMHM73Ng00meh3YjRSw-768x149.png 768w, https:\/\/towardsdatascience.com\/wp-content\/uploads\/2025\/02\/1_8SCcMHM73Ng00meh3YjRSw.png 1400w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\"><figcaption class=\"wp-element-caption\">Main applications of reinforcement learning<\/figcaption><\/figure>\n<p class=\"wp-block-paragraph\">Currently the most popular applications are:<\/p>\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\">\n<strong>Games<\/strong>.\u00a0Existing approaches can design optimal game strategies and outperform humans.\u00a0The most well-known examples are chess and Go.<\/li>\n<li class=\"wp-block-list-item\">\n<strong>Robotics<\/strong>.\u00a0Advanced algorithms can be incorporated into robots to help them move, carry objects or complete routine tasks at home.<\/li>\n<li class=\"wp-block-list-item\">\n<strong>Autopilot<\/strong>.\u00a0Reinforcement learning methods can be developed to automatically drive cars, control helicopters or drones.<\/li>\n<\/ul>\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n<p class=\"wp-block-paragraph\">This article was a logical continuation of the previous part and expanded the skill set needed to become a data scientist. While most of the mentioned topics require time to master, they can add significant value to your portfolio. This is especially true for the NLP and CV domains, which are in high demand today.<\/p>\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">After reaching a high level of expertise in data science, it is still crucial to stay motivated and consistently push yourself to learn new topics and explore emerging algorithms.<\/p>\n<\/blockquote>\n<p class=\"wp-block-paragraph\">Data science is a constantly evolving field, and in the coming years, we might witness the development of new state-of-the-art approaches that we could not have imagined in the past.<\/p>\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n<ul class=\"wp-block-list\">\n<li class=\"wp-block-list-item\"><a href=\"https:\/\/web.stanford.edu\/class\/psych209\/Readings\/SuttonBartoIPRLBook2ndEd.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">Reinforcement Learning.\u00a0An Introduction.\u00a0Second Edition | Richard S. Sutton and Andrew G. Barto<\/a><\/li>\n<\/ul>\n<p class=\"wp-block-paragraph\"><em>All images are by the author unless noted otherwise.<\/em><\/p>\n<p>The post <a href=\"https:\/\/towardsdatascience.com\/roadmap-to-becoming-a-data-scientist-part-4-advanced-machine-learning\/\">Roadmap to Becoming a Data Scientist, Part 4: Advanced Machine Learning<\/a> appeared first on <a href=\"https:\/\/towardsdatascience.com\/\">Towards Data Science<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Vyacheslav Efimov<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/towardsdatascience.com\/roadmap-to-becoming-a-data-scientist-part-4-advanced-machine-learning\/\">Go to original source<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Roadmap to Becoming a Data Scientist, Part 4: Advanced Machine Learning Introduction Data science is undoubtedly one of the most fascinating fields today.\u00a0Following significant breakthroughs in machine learning about a decade ago, data science has surged in popularity within the tech community.\u00a0Each year, we witness increasingly powerful tools that once seemed unimaginable.\u00a0Innovations such as the\u00a0Transformer [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[62,221,83,70,260,1650,1755],"tags":[84,199,341],"class_list":["post-1872","post","type-post","status-publish","format-standard","hentry","category-aimldsaimlds","category-computer-vision","category-data-science","category-machine-learning","category-nlp","category-reinfocement-learning","category-roadmaps","tag-data","tag-learning","tag-machine"],"_links":{"self":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/1872"}],"collection":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/comments?post=1872"}],"version-history":[{"count":0,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/posts\/1872\/revisions"}],"wp:attachment":[{"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/media?parent=1872"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/categories?post=1872"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mailitics.com\/index.php\/wp-json\/wp\/v2\/tags?post=1872"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}