Deep Learning Library using VanillaJS
dl4vanillajs is a buldle of function for deeplearning application written in VanillaJS.
Vanilla JS is the alias of pure JavaScript. It does not depends on any frameworks or libraries.
There are a web browser which supports Javascript/ECMA-Script, all of running and developing environment is prepared.
It is only a expermental approach, not optimized and not commertial purpose.
Demos
- dl4vanillajs-node-example
- simple binary classification
- xor problem
Install
dl4vanillsjs has no dependencies.
You can download released archives or install from npm.
- use npm
$ npm install dl4vanillajs
- download archive
Download recent released archives : link
Usages
- for Node.js
// import moduleconst dl = ; // define matrix for examplelet X = 123let W = 101 110 001; // multiply X and Wlet Y = dlmat; // add scalar value 1let Y1 = dlmat; // print resultconsole;
- for WebBrowser
<!-- Result output --> <!-- Import Modules -->
Test
You can run test sctipt using node.js.
- run whole tests
$ node test/run.js
- test specific module (optional)
example 1 : test math
modules
$ node test/run.js math
example 2 : test math/derivative.js
module
$ node test/run.js math.derivative