Skip to content

This is a simple neural network that extracts a function from dots the user draws on the page

Notifications You must be signed in to change notification settings

loehx/curve-fitting-neural-network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Neural Network Function Learning

A visualization of a neural network learning to fit mathematical functions using Three.js.

Overview

This application uses a feedforward neural network to approximate mathematical functions, with real-time visualization using Three.js to show the learning process.

Live Demo

Visit loehx.github.io/curve-fitting-neural-network to see it in action.

Features

  • Interactive 3D visualization
  • Real-time training visualization
  • Configurable network architecture
  • Supports arbitrary functions
  • Smooth animation

Technical Details

  • Multiple configurable hidden layers
  • ReLU activation functions
  • Gradient descent optimization
  • Weight/bias initialization

Usage

  1. Open index.html in a browser
  2. Watch the visualization automatically start
  3. Blue points show the target function
  4. Red surface shows the network's approximation

Dependencies

  • Three.js (r134+)
  • WebGL-capable browser

Implementation

Core components:

  • Neural network implementation
  • Three.js visualization
  • Training loop
  • Dynamic mesh generation

License

MIT License

About

This is a simple neural network that extracts a function from dots the user draws on the page

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages