← 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
Not currently ranked — collecting fresh signals.
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.

Frequently asked

What is trekhleb/nano-neuron?
A minimal JavaScript implementation demonstrating how a single artificial neuron learns to convert Celsius to Fahrenheit.
Is nano-neuron open source?
Yes — trekhleb/nano-neuron is open source, released under the MIT license.
What language is nano-neuron written in?
trekhleb/nano-neuron is primarily written in JavaScript.
How popular is nano-neuron?
trekhleb/nano-neuron has 2.3k stars on GitHub.
Where can I find nano-neuron?
trekhleb/nano-neuron is on GitHub at https://github.com/trekhleb/nano-neuron.

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