Skip to main content
100%

Simple Neuron

✓ Published0🌍 Public
CCharlesFr
Last edited Mar 29, 2017
Created on Mar 29, 2017

A Processing sketch renders a single neuron as a simple circle, with its grayscale fill directly mapped from the neuron's output value using `fill(128 * (1 - m_output))` and an `ellipse(0,0,16,16)` at the origin. The `Neuron` class stores the output in `m_output`, and its `display()` method draws the shape, showing a minimal example of visual encoding where brightness decreases as the neuron’s activation increases. No external libraries are used; the code relies only on Processing’s core drawing API for this static representation.

AI-generated description

Similar vizzes