InterviewTreedInterviewTreed
All learning paths

AI & AI Engineering

Machine Learning

Prepare for machine learning fundamentals, algorithms, feature engineering, model training, evaluation, optimization, and practical machine learning applications.

Your learning roadmap

Explore the key concepts

Use these subtopics as a study checklist. Start with the fundamentals, then progress to practical examples and interview preparation.

Machine learning fundamentals

Understand the foundations of machine learning, including how algorithms learn patterns from data, make predictions, identify relationships, and improve through training.

Start learning

Introduction to machine learning

Explore how machine learning enables computers to learn from examples instead of relying entirely on explicitly programmed rules, including common workflows and applications.

Start learning

Types of machine learning

Compare supervised, unsupervised, semi-supervised, and reinforcement learning, understanding their training approaches, data requirements, and practical use cases.

Start learning

Supervised learning

Learn how supervised learning uses labeled training data to build predictive models for tasks such as classification and regression.

Start learning

Unsupervised learning

Understand how unsupervised learning discovers hidden patterns, groups, structures, and relationships in datasets without predefined target labels.

Start learning

Semi-supervised learning

Explore semi-supervised learning techniques that combine a small amount of labeled data with larger collections of unlabeled data to improve model training.

Start learning

Reinforcement learning fundamentals

Understand reinforcement learning through agents, environments, actions, rewards, and policies, and how agents learn strategies through interaction and feedback.

Start learning

Classification and regression

Compare classification and regression, understanding how classification predicts discrete categories while regression estimates continuous numerical values.

Start learning

Training, validation, and test datasets

Learn how to divide datasets into training, validation, and test subsets, understand the purpose of each split, and prevent data leakage during model development.

Start learning

Data preprocessing

Explore the data preprocessing workflow, including cleaning, transformation, encoding, scaling, and preparing raw datasets for reliable machine learning models.

Start learning

Data cleaning and missing values

Learn how to identify duplicate records, inconsistent values, incorrect formats, and missing data, and choose suitable strategies for handling data quality problems.

Start learning

Feature engineering

Understand feature engineering techniques for creating meaningful input variables from raw data using domain knowledge, mathematical transformations, and existing features.

Start learning

Feature selection

Explore feature selection methods that identify relevant input variables, remove redundant information, reduce model complexity, and improve generalization.

Start learning

Categorical and numerical feature encoding

Learn how to represent categorical and numerical variables using techniques such as one-hot encoding, ordinal encoding, and suitable numerical transformations.

Start learning

Feature scaling and normalization

Compare standardization and normalization techniques, understanding how feature scales influence distance-based algorithms, gradient optimization, and model performance.

Start learning

Handling imbalanced datasets

Understand class imbalance and its effect on predictive models, including oversampling, undersampling, class weights, SMOTE, and appropriate evaluation metrics.

Start learning

Linear regression

Learn how linear regression models relationships between independent variables and a continuous target using coefficients, intercepts, and least-squares optimization.

Start learning

Logistic regression

Understand logistic regression as a classification algorithm that estimates class probabilities using a logistic function, decision thresholds, and model coefficients.

Start learning

Decision trees

Explore decision trees and how they split datasets using feature-based conditions, impurity measures, and recursive rules to perform classification or regression.

Start learning

Random forests

Learn how random forests combine multiple decision trees trained on sampled data and feature subsets to improve predictive stability and reduce overfitting.

Start learning

Gradient boosting

Understand gradient boosting, where models are trained sequentially to correct previous prediction errors and progressively improve overall predictive performance.

Start learning

XGBoost and LightGBM

Compare XGBoost and LightGBM, focusing on gradient-boosted tree architectures, regularization, efficient training strategies, and practical model-tuning considerations.

Start learning

Support vector machines (SVM)

Learn how support vector machines identify decision boundaries with maximum margins and use kernel functions to handle complex classification problems.

Start learning

K-nearest neighbors (KNN)

Understand K-nearest neighbors and how predictions are made using the labels or values of nearby training examples based on a selected distance metric.

Start learning

Naive Bayes

Explore Naive Bayes classifiers and how Bayes' theorem with conditional independence assumptions supports efficient probabilistic classification, especially for text data.

Start learning

Ensemble learning

Understand ensemble learning and how combining multiple models can improve predictive accuracy, stability, and generalization compared with individual models.

Start learning

Bagging and boosting

Compare bagging and boosting, examining how bagging trains models on sampled datasets while boosting builds sequential models that focus on previous errors.

Start learning

Clustering algorithms

Explore clustering algorithms that group similar observations without predefined labels, including their distance measures, assumptions, and practical applications.

Start learning

K-means clustering

Learn how K-means partitions data into a specified number of clusters by iteratively assigning observations to centroids and updating cluster centers.

Start learning

Hierarchical clustering

Understand hierarchical clustering and how it builds nested groups through agglomerative or divisive strategies, often represented using dendrograms.

Start learning

DBSCAN

Explore DBSCAN, a density-based clustering algorithm that identifies dense groups of observations, detects noise, and discovers clusters with irregular shapes.

Start learning

Dimensionality reduction

Understand dimensionality reduction techniques that transform high-dimensional datasets into fewer variables while attempting to preserve important information.

Start learning

Principal Component Analysis (PCA)

Learn how Principal Component Analysis transforms correlated features into orthogonal principal components that capture directions of maximum variance.

Start learning

Model training fundamentals

Understand the machine learning training process, including model initialization, fitting algorithms, parameter estimation, optimization, and performance measurement.

Start learning

Loss and cost functions

Explore loss and cost functions used to quantify prediction errors and guide model optimization across regression, classification, and other learning tasks.

Start learning

Gradient descent

Learn how gradient descent updates model parameters using loss-function gradients and a learning rate to iteratively minimize prediction errors.

Start learning

Bias and variance

Understand bias and variance as sources of model prediction error and how model complexity, training data, and learning assumptions influence generalization.

Start learning

Overfitting and underfitting

Learn how overfitting and underfitting affect machine learning models, recognize their symptoms through training and validation performance, and apply suitable remedies.

Start learning

Regularization techniques

Explore regularization methods such as L1 and L2 penalties, dropout, and early stopping to control model complexity and reduce overfitting.

Start learning

Cross-validation

Understand cross-validation techniques, including K-fold and stratified K-fold validation, for estimating model performance across multiple training and validation splits.

Start learning

Hyperparameter tuning

Learn how to tune hyperparameters such as learning rates, tree depth, regularization strength, and neighborhood size to improve model performance.

Start learning

Grid search and random search

Compare grid search and random search for hyperparameter optimization, understanding their search strategies, computational costs, and suitability for different parameter spaces.

Start learning

Model evaluation metrics

Explore how to select evaluation metrics based on the machine learning task, dataset characteristics, business objectives, and consequences of prediction errors.

Start learning

Confusion matrix

Understand the confusion matrix and how true positives, true negatives, false positives, and false negatives help analyze classification model performance.

Start learning

Accuracy, precision, recall, and F1-score

Learn how accuracy, precision, recall, and F1-score measure different aspects of classification performance and when each metric is appropriate.

Start learning

ROC curve and AUC

Understand ROC curves and Area Under the Curve, including how true positive and false positive rates help evaluate classification models across decision thresholds.

Start learning

Mean Absolute Error and Mean Squared Error

Compare Mean Absolute Error and Mean Squared Error for regression evaluation, understanding their error calculations and sensitivity to large prediction mistakes.

Start learning

Model interpretability

Explore model interpretability techniques that help developers and stakeholders understand how machine learning models produce predictions and make decisions.

Start learning

Feature importance

Learn how feature importance methods estimate the contribution of input variables to model predictions using techniques such as impurity-based scores and permutation importance.

Start learning

Explainable AI (XAI)

Understand Explainable AI approaches such as SHAP and LIME that help explain individual predictions, identify influential features, and improve model transparency.

Start learning

Model selection

Learn how to compare candidate algorithms and select a suitable model based on validation performance, complexity, interpretability, computational cost, and deployment requirements.

Start learning

Probability calibration

Understand probability calibration and how techniques such as Platt scaling and isotonic regression improve the reliability of predicted class probabilities.

Start learning

Machine learning pipelines

Explore machine learning pipelines that combine preprocessing, feature transformation, model training, and prediction into repeatable workflows that reduce data leakage.

Start learning

Scikit-learn fundamentals

Learn Scikit-learn fundamentals, including estimators, transformers, pipelines, train-test splitting, model fitting, evaluation metrics, and hyperparameter search.

Start learning

Machine learning with Python

Explore how to develop end-to-end machine learning applications in Python using data processing libraries, Scikit-learn, visualization tools, and practical model workflows.

Start learning

Model persistence and serialization

Understand how to save and reload trained machine learning models using serialization techniques and formats such as Joblib, Pickle, and model-specific persistence options.

Start learning

Model deployment fundamentals

Learn the fundamentals of deploying trained models into applications through APIs, batch-processing systems, model-serving infrastructure, and production environments.

Start learning

Batch and real-time prediction

Compare batch and real-time prediction architectures, including their processing patterns, latency requirements, throughput considerations, and suitable application scenarios.

Start learning

Model monitoring and drift detection

Understand production model monitoring, including prediction quality, data drift, concept drift, performance degradation, and strategies for detecting and responding to changes.

Start learning

Machine learning performance optimization

Explore techniques for improving machine learning performance through feature optimization, efficient algorithms, parallel processing, model compression, and inference improvements.

Start learning

Practical machine learning projects

Apply machine learning concepts through complete projects involving problem definition, data preparation, feature engineering, model selection, evaluation, and deployment.

Start learning

Practice & revise

Interview questions

Practice interview questions with answers, key points, and practical examples.

Test your knowledge

Explore 100 questions for this topic, covering concepts, practical examples, and interview scenarios.

Browse 100 questions

Keep learning step by step

Work through the concepts, practice explaining them in your own words, and use interview questions to check your understanding.

Explore another learning path