SOM vs RBF Network Algorithms in C: Key Differences
A self-organizing map clusters unlabeled data on a grid, while an RBF network approximates a function from labeled data. Compared with working C code.
Spread Your Knowledge. Questions with answers, tutorials and articles, newest first.
A self-organizing map clusters unlabeled data on a grid, while an RBF network approximates a function from labeled data. Compared with working C code.
A self-organizing map maps high-dimensional data onto a small grid so similar inputs stay close. This guide implements one in C with a decaying learning rate and radius.
A Hopfield network is a one-layer associative memory, while a DBN is a stack of RBMs trained layer by layer. Compare them with working C code.
Transformers use attention and backpropagation, while Boltzmann machines use energy functions and sampling. See the differences with C code for both.
A GAN trains a generator against a discriminator, while a VAE learns an encoder and decoder with a KL penalty. See how they differ and how to write the core steps in C.
A VAE encodes inputs into a Gaussian latent space and decodes samples back. See the encoder, sampling, KL loss and a working C implementation.
A GAN pairs a generator with a discriminator trained against each other. This guide explains the idea and gives a runnable one-dimensional GAN in C.
LSTMs model sequences with gated memory; autoencoders compress and reconstruct data. Compare them with working C forward-pass code.
A Markov Decision Process describes a decision problem, while Monte Carlo estimates answers by random sampling. See both in runnable C code.
Monte Carlo algorithms estimate hard quantities by averaging random samples. Learn the method and a complete C17 pi estimator with a fast generator.
A Markov decision process models decisions under uncertainty. This guide implements one in C with value iteration and explains each component.
Dynamic programming needs a known model, while reinforcement learning learns from interaction. See both in C with value iteration and Q-learning examples.
Dynamic programming stores answers to overlapping subproblems so each is solved once. See memoization and tabulation in C with Fibonacci, knapsack and LCS.
Build a Q-learning agent in C using a struct, decaying epsilon-greedy exploration and a final greedy run that prints the learned path to the goal.
Active learning lets a model pick the examples a human should label next. This guide explains uncertainty sampling and shows a complete C implementation.
Semi-supervised learning combines a few labels with many unlabeled examples. This guide implements confidence-based self-training in C and explains the main alternatives.
Supervised learning predicts from labeled data, unsupervised learning finds structure in unlabeled data. Includes tested C code for regression and k-means.
Unsupervised learning finds patterns without labels. Learn how k-means clustering works and run a complete, tested k-means program written in C.
Learn how a recurrent neural network works and implement one in C with a forward pass, backpropagation through time and gradient clipping.
A CNN slides learned filters over images to detect patterns. See how to build its forward pass in plain C, from convolution to softmax.