Deep Learning vs Neural Network Algorithms in C: Differences
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 feedforward network in plain C that learns XOR.
Implement a neural network in plain C: forward pass, backpropagation and gradient descent, shown in a complete XOR example, plus when to use libraries instead.
Gradient boosting adds trees that fix residual errors, while an SVM finds a maximum-margin boundary. Compare them with runnable C 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 with decision stumps, shrinkage and a full runnable example.
A decision tree is one greedy model, a random forest averages many randomised trees. See how they differ and compare both in a complete C program.
A random forest averages many bootstrap-trained decision trees. This guide explains the idea and gives a tested C program with training, prediction and cleanup.
Build a decision tree classifier in C with structs, recursion and Gini impurity, including training, prediction and memory cleanup.
Gradient descent follows local slope, Bayesian optimization models the whole function. See when each fits, with runnable C17 code for both.
Gradient descent minimises a loss by stepping against its gradient. This guide implements it in C for a simple function and linear regression, with tuning advice.
Bayesian optimization fits a Gaussian process to past evaluations and samples where expected improvement is highest. A full C implementation is included.
An EDA optimises by fitting a probability model to the best solutions and sampling from it. This guide explains the loop and gives a complete C implementation.
Swarm-based optimization uses many cooperating agents to find good solutions. This guide shows a complete Particle Swarm Optimization program in C.
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 instead of fixed values. See a complete C implementation of symbolic regression with crossover, mutation and clean memory handling.
Understand Pareto fronts and implement NSGA-II in C with non-dominated sorting, crowding distance and elitist selection on a runnable test problem.
A memetic algorithm adds local search to evolution; a swarm algorithm moves particles toward the best positions. Compare them with runnable C code.
Swarm algorithms optimize with many cooperating agents. See how Particle Swarm Optimization works and how to implement it in C.
A memetic algorithm adds local search to a genetic algorithm. See how it works and a complete C implementation with selection, crossover and hill climbing.