Skip to content

In this example you can live visualize how the gradient changes if we adjust the parameters. For visualizing the function I use Googles line chart on the left. To visualize the gradient at the right I use 3dGraph from vis.js. For more information lokk at the README file. Under Adjustments you can tweak the value for a[0 - 5] and the exponent[0 -…

License

Notifications You must be signed in to change notification settings

ccarmesin/visualize-gradient-descent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visualize gradient decsent in node.js

In this example you can visualize a gradient descent landscape of a polynomial function f(x) = a * x^exponent. You can adjust the parameters a and the exponent of the function by yourself and look how the gradient changes.

About this repo

This repository contains the logic and scripts that combine three packages:

  • visjs.org A libary to show 3dGraphs
  • Babeljs.io An extention to use next generation JavaScript
  • Parcel Bundler Blazing fast, zero configuration web application bundler
  • Google Charts Display live data on your site
  • Bootstrap Build responsive, mobile-first projects on the web with the world’s most popular front-end component library.

Gallery

Visualisation of the function f(x) = a * x^exponent:

alt text

Visualisation of the gradient Landscape:

alt text

Install

  1. Download the project
  2. Call 'npm install' in your projectfolder(Make sure npm is installed)
  3. 'npm run build'
  4. 'npm run watch'
  5. If your browser doesn't open by itself navigate to 'http://localhost:1234/'

Credits

Credits to Ryan Harris

About

In this example you can live visualize how the gradient changes if we adjust the parameters. For visualizing the function I use Googles line chart on the left. To visualize the gradient at the right I use 3dGraph from vis.js. For more information lokk at the README file. Under Adjustments you can tweak the value for a[0 - 5] and the exponent[0 -…

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published