A collection of single-header libraries for building machine learning models in C
-
Updated
Feb 12, 2026 - C
Machine learning is the practice of teaching a computer to learn. The concept uses pattern recognition, as well as other forms of predictive algorithms, to make judgments on incoming data. This field is closely related to artificial intelligence and computational statistics.
A collection of single-header libraries for building machine learning models in C
CTorch is a super lightweight C implementation of PyTorch, built for learning and exploration. It's a "just for fun" project to dive into understanding the basics of machine learning frameworks.
bnlearn — Bayesian Network Structure Learning, Parameter Learning and Inference. http://www.bnlearn.com/
A from scratch machine learning library in C with neural networks, backpropagation, and custom tensor math for performance and learning.
KNN Is A Machine Learning Algorithm For Pattern Recognition That Finds The Nearest K Observations To Predict A Target.
Machine Learning library coded fully in C. Fully adjustable settings and architecture with multiple activation functions, features, and optimizations to choose from.