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

Contrastive Learning: How Models Learn by Comparison

A practical overview of contrastive learning - how models learn by comparing similar and dissimilar examples, the loss functions and methods behind it, and how to implement it in PyTorch.
Dario Radečić's photo

Dario Radečić

May 4, 2026

Kernel Trick Explained: How SVMs Learn Nonlinear Patterns

A conceptual guide to the kernel trick - what it is, how it enables SVMs and other kernel-based models, and when to use it over other approaches to nonlinear modeling.
Dario Radečić's photo

Dario Radečić

May 4, 2026

Regularization in Machine Learning: L1, L2, and Elastic Net Explained

A practical overview of regularization in machine learning - what it is, how it works, and when to use L1, L2, and Elastic Net to build models that generalize.
Dario Radečić's photo

Dario Radečić

April 13, 2026

How to Normalize Data: A Complete Guide With Examples

Stop vanishing gradients and biased models. Learn how to normalize data using min-max and z-score in Scikit-learn to improve machine learning models.
Josep Ferrer's photo

Josep Ferrer

January 27, 2026

Precision vs Recall: The Essential Guide for Machine Learning

Accuracy isn't enough. Learn the difference between precision and recall, understand the trade-off, and choose the right metric for your model.
Mark Pedigo's photo

Mark Pedigo

January 8, 2026

Cost Functions: A Complete Guide

Learn what cost functions are, and how and when to use them. Includes practical examples.
Mark Pedigo's photo

Mark Pedigo

December 18, 2025

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

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

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

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

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