Skip to content

source code for Robert Plummer's "Neural networks in JavaScript" course

License

Notifications You must be signed in to change notification settings

varghs/JS-Neural-Networks-Course

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Neural networks in JavaScript

Build Status Build Status

This is the source code for Robert Plummer's: 'Neural networks in JavaScript' course on Scrimba for Brain.js. Some files include bonus question answers and others don't.

'index.html' and 'counter.html' are the same, they just use different versions of Brain.js:

  • 'index.html': Version 1.2.6.
  • 'counter.html': Version 1.6.0.

'normalization.html' is used for the 'stockPredictor.js' file.

Source:

Setup

The code is meant to be run in a browser, so you just need an online HTML, JavaScript, CSS compiler such as:

The output will be in the console, not in the HTML page itself.

If you do want to install it locally, then:

Clone this repository:

$ git clone https://github.com/xXH4CKST3RXx/JS-Neural-Networks-Course.git

Setup the project as a Web App

Install Brain.js locally:

NPM

If you can, install brain.js with npm:

npm install brain.js

CDN

<script src="//unpkg.com/brain.js"></script>

Download

Download the latest brain.js for browser

Installation note

Brain.js depends on a native module headless-gl for gpu support. In most cases installing brain.js from npm should just work. However, if you run into problems, this means that prebuilt binaries are not able to download from github reporsitories and you might need to build it yourself. If you would like, you can also install an earlier version of Brain.js if the installation fails.

Building from source

Please make sure the following dependencies are installed and up to date and then run:

npm rebuild
System dependencies
Mac OS X
Ubuntu/Debian
sudo apt-get install -y build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
Windows

Run it all together:

$ npm install

This will install NPM packages.

$ npm start

This will run the Web App.

Once its deployed go to http://localhost:3000/ or wherever the WebApp is served.

Built with:

HTML JavaScript Brain.js

License

Robert Plummer © | Per Harald Borgen ©

Licensed under the MIT License.

Contributors

Thanks to all the people who have improved this repository!

Made with contributors-img.

All the source code was created by Robert Plummer, this repository is just a way to get access to the code.

About

source code for Robert Plummer's "Neural networks in JavaScript" course

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages