← all repositories

trekhleb/nano-neuron

A minimal JavaScript implementation demonstrating how a single artificial neuron learns to convert Celsius to Fahrenheit.

2.3k stars JavaScript Learning
nano-neuron
Velocity · 7d
+1.0
★ / day
Trend
steady
star history

NanoNeuron is an educational project that teaches machine learning fundamentals through 7 simple JavaScript functions. It implements a single neuron with prediction, cost calculation, forward and backward propagation, and training capabilities. The project requires no external libraries, demonstrating the core math behind machine learning by having a neuron learn the Celsius-to-Fahrenheit conversion formula from scratch.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.