Created
September 6, 2018 20:54
-
-
Save kmaher9/d17aa9d1b140e62d13ce4d9041eae218 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| var brain = require('brain.js') | |
| var fs = require('fs') | |
| // configuration to be used in the brain | |
| const config = { | |
| binaryThresh: 0.5, // arbitary value | |
| hiddenLayers: [3], // the size of the hidden layers in the network | |
| activation: 'sigmoid' // activation function | |
| } | |
| // array to hold the training data after formatting | |
| var trainingData = [] | |
| // initialise a new backpropogating neural network | |
| const net = new brain.NeuralNetwork(config) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment