Deep Learning vs Neural Network Algorithms in C++ Explained
A neural network is the general model and deep learning is its many-layer form. See the differences and run a configurable multilayer perceptron in C++.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
A neural network is the general model and deep learning is its many-layer form. See the differences and run a configurable multilayer perceptron in C++.
A neural network is layers of weighted sums and activations trained by gradient descent. This guide builds a small C++20 feedforward network class that learns XOR.
Build a multi-layer neural network in C++20 with a reusable layer class, understand backpropagation, and see when to use LibTorch or ONNX Runtime instead.
Gradient boosting stacks trees that fix residual errors, while an SVM learns a maximum-margin boundary. Compare them with runnable C++20 code.
An SVM finds the maximum-margin boundary between two classes. See how to implement a linear SVM in C++ with tested example code.
Gradient boosting adds weak learners that fit the errors of the ensemble. This guide implements it in C++20 with sorted split search and a complete runnable example.
A decision tree is one greedy model, while a random forest votes across many randomised trees. Compare both with a complete C++20 program.
A random forest combines many bootstrap-trained decision trees by voting. This guide explains the algorithm and gives a tested C++20 program with no manual memory management.
Build a decision tree classifier in modern C++ using unique_ptr, std::span and Gini impurity, with training, prediction and printing.
Gradient descent follows local slope, Bayesian optimization models the whole function. See when each fits, with runnable C++20 code for both.
Gradient descent minimises a loss by stepping against its gradient. This guide builds a generic C++20 optimiser and uses it for linear regression, with momentum.
Bayesian optimization fits a Gaussian process to past evaluations and samples where expected improvement is highest. A full C++20 implementation is included.
An EDA samples candidates from a probability model and re-fits the model to the best ones. This guide explains the loop and gives a complete C++20 example.
Swarm-based optimization uses cooperating agents to search for a minimum. This guide builds a templated Particle Swarm Optimizer in modern C++20.
Multi-objective optimization finds trade-off solutions, while genetic programming evolves programs. See how they differ and how to implement the basics in C++.
Genetic programming evolves expression trees rather than fixed values. See a complete C++20 implementation of symbolic regression using unique_ptr trees and subtree crossover.
Understand Pareto fronts and implement NSGA-II in modern C++ with non-dominated sorting, crowding distance and elitist selection.
A memetic algorithm adds local search to evolution; a swarm algorithm moves particles toward the best positions. Compare them with C++20 code.
A swarm algorithm searches for an optimum with many cooperating agents. This guide explains PSO and gives a complete C++20 implementation.
A memetic algorithm is a genetic algorithm that refines every offspring with local search. This guide explains the idea and gives a complete C++20 example.