Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
65 additions
and 73 deletions.
- +0 −3 .eslintignore
- +2 −37 __tests__/.eslintrc.json
- +11 −0 examples/.eslintrc.json
- +1 −1 examples/javascript/childrens-book.js
- +1 −1 examples/javascript/cross-validate.js
- +1 −1 examples/javascript/gpu-fallback.js
- +1 −1 examples/javascript/gpu.html
- +1 −1 examples/javascript/learn-math.js
- +1 −1 examples/javascript/predict-numbers.js
- +1 −1 examples/javascript/predict-tense.js
- +1 −1 examples/javascript/recommendation-engine/index.html
- +13 −11 examples/javascript/rendering-svg.html
- +1 −1 examples/javascript/stream-example.js
- +1 −1 examples/javascript/string-classification.js
- +1 −1 examples/javascript/which-letter-simple.js
- +1 −1 package.json
- +4 −4 rollup.config.browser.js
- +3 −3 rollup.config.js
- +1 −3 tsconfig.json
- +19 −0 tsconfig.source.json
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -23,7 +23,4 @@ test/e2e/*.js | ||
| **.min.js | ||
| dist/ | ||
| __coverage__/ | ||
| index.d.ts | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -4,41 +4,6 @@ | ||
| "jest": true, | ||
| "node": true | ||
| }, | ||
| "extends": "../.eslintrc.json", | ||
| "plugins": ["prettier", "@typescript-eslint", "jest"] | ||
| } | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,11 @@ | ||
| { | ||
| "env": { | ||
| "browser": true, | ||
| "es6": true, | ||
| "node": true | ||
| }, | ||
| "extends": "../.eslintrc.json", | ||
| "parserOptions": { | ||
| "project": "./tsconfig.json" | ||
| } | ||
| } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,4 @@ | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| const trainingData = [ | ||
| 'Jane saw Doug.', | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,5 +1,5 @@ | ||
| const assert = require('assert'); | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| const trainingData = [ | ||
| // xor data, repeating to simulate that we have a lot of data | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,4 @@ | ||
| const brain = require('../../dist/brain'); | ||
| const net = new brain.NeuralNetworkGPU(); | ||
|
|
||
| const xorTrainingData = [ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,6 +1,6 @@ | ||
| <html> | ||
| <head> | ||
| <script src="https://unpkg.com/brain.js"></script> | ||
| <script> | ||
| const net = new brain.NeuralNetworkGPU(); | ||
|
|
||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,4 @@ | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| const LSTM = brain.recurrent.LSTM; | ||
| const net = new LSTM(); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,5 +1,5 @@ | ||
| const assert = require('assert'); | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| const net = new brain.recurrent.LSTMTimeStep({ | ||
| inputSize: 2, | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,4 @@ | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| // create configuration for training | ||
| const config = { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -25,7 +25,7 @@ | ||
| </head> | ||
|
|
||
| <body onLoad="nextTry();"> | ||
| <script src="https://unpkg.com/brain.js"></script> | ||
| <script src="itemsInStock.js"></script> | ||
| <script> | ||
| const color_normalization_factor = 100; | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,5 +1,5 @@ | ||
| const assert = require('assert'); | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| const net = new brain.NeuralNetwork(); | ||
| const xor = [ | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,4 +1,4 @@ | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| // create configuration for training | ||
| const config = { | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -1,5 +1,5 @@ | ||
| const assert = require('assert'); | ||
| const brain = require('../../dist/brain'); | ||
|
|
||
| /** | ||
| * Return 0 or 1 for '#' | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "allowJs": true, | ||
| "allowSyntheticDefaultImports": true, | ||
| "checkJs": false, | ||
| "esModuleInterop": true, | ||
| "module": "esnext", | ||
| "moduleResolution": "node", | ||
| "noEmit": true, | ||
| "noEmitOnError": true, | ||
| "outDir": "./dist", | ||
| "rootDir": "./", | ||
| "skipLibCheck": true, | ||
| "strict": true, | ||
| "target": "esnext" | ||
| }, | ||
| "exclude": ["node_modules", "**/*.json", "**/*.d.ts", "./dist"], | ||
| "include": ["./src"] | ||
| } |

