Skip to main content
Category
Topics

Machine Learning Tutorial

Get insights & best practices into AI & machine learning, upskill, and build data cultures. Learn how to get the most out of machine learning models with our tutorials.
Other topics:
GroupTraining 2 or more people?Try DataCamp for Business
All posts
Machine Learning

F1 Score in Machine Learning: A Balanced Metric for Precision and Recall

Understand how the F1 score evaluates model performance by combining precision and recall. Learn its use in binary and multiclass classification, with Python examples.
Vidhi Chugh's photo

Vidhi Chugh

November 12, 2025

Machine Learning

ONNX: Train in Any Framework, Deploy on Any Hardware

Learn how to convert models to ONNX format, optimize them with quantization, and deploy them across any platform - from edge devices to cloud servers - without vendor lock-in.
Dario Radečić's photo

Dario Radečić

November 12, 2025

Machine Learning

Understanding UMAP: A Comprehensive Guide to Dimensionality Reduction

Learn how UMAP simplifies high-dimensional data visualization with detailed explanations, practical use cases, and comparisons to other dimensionality reduction methods, including t-SNE and PCA.
Arunn Thevapalan's photo

Arunn Thevapalan

November 4, 2025

Machine Learning

Tanh Function: Why Zero-Centered Outputs Matter for Neural Networks

This guide explains the mathematical intuition behind the tanh function, how it compares to sigmoid and ReLU, its advantages and trade-offs, and how to implement it effectively in deep learning.
Dario Radečić's photo

Dario Radečić

November 3, 2025

Machine Learning

Softplus: The Smooth Activation Function Worth Knowing

This guide explains the mathematical properties of Softplus, its advantages and trade-offs, implementation in PyTorch, and when to switch from ReLU.
Dario Radečić's photo

Dario Radečić

October 29, 2025

Data Science

Discrete Probability Distributions Explained with Examples

Understand discrete probability distributions in data science. Explore PMF, CDF, and major types like Bernoulli, Binomial, and Poisson with Python examples.
Vaibhav Mehra's photo

Vaibhav Mehra

October 29, 2025

Machine Learning

Feed-Forward Neural Networks Explained: A Complete Tutorial

Feed-Forward Neural Networks (FFNNs) are the foundation of deep learning, used in image recognition, Transformers, and recommender systems. This complete FFNN tutorial explains their architecture, differences from MLPs, activations, backpropagation, real-world examples, and PyTorch implementation.
Vaibhav Mehra's photo

Vaibhav Mehra

September 16, 2025

Artificial Intelligence

Vision Transformers (ViT) Tutorial: Architecture and Code Examples

Learn how Vision Transformers (ViTs) leverage patch embeddings and self-attention to beat CNNs in modern image classification. This in-depth tutorial breaks down the ViT architecture, provides step-by-step Python code, and shows you when to choose ViTs for real-world computer-vision projects.
Vaibhav Mehra's photo

Vaibhav Mehra

August 28, 2025

Machine Learning

Introduction to Maximum Likelihood Estimation (MLE)

Learn what Maximum Likelihood Estimation (MLE) is, understand its mathematical foundations, see practical examples, and discover how to implement MLE in Python.
Vaibhav Mehra's photo

Vaibhav Mehra

July 27, 2025

Machine Learning

KL-Divergence Explained: Intuition, Formula, and Examples

Explore KL-Divergence, one of the most common yet essential tools used in machine learning.
Vaibhav Mehra's photo

Vaibhav Mehra

July 27, 2025