A visualization of a neural network learning to fit mathematical functions using Three.js.
This application uses a feedforward neural network to approximate mathematical functions, with real-time visualization using Three.js to show the learning process.
Visit loehx.github.io/curve-fitting-neural-network to see it in action.
- Interactive 3D visualization
- Real-time training visualization
- Configurable network architecture
- Supports arbitrary functions
- Smooth animation
- Multiple configurable hidden layers
- ReLU activation functions
- Gradient descent optimization
- Weight/bias initialization
- Open
index.html
in a browser - Watch the visualization automatically start
- Blue points show the target function
- Red surface shows the network's approximation
- Three.js (r134+)
- WebGL-capable browser
Core components:
- Neural network implementation
- Three.js visualization
- Training loop
- Dynamic mesh generation
MIT License