0.0.31 • Published 6 years ago
@0x77/brain v0.0.31
Brain.js CLI
@0x77/brain is an Node.js module with brain.js and repl, its like repl with brain.js and some additionally features like loadFromJSON/readFromJSON file.
How to install
To install:
- Yarn
$ yarn global add @0x77/brain - NPM
$ npm i -g @0x77/brainCommands
- REPL:
.breakSometimes you get stuck, this gets you out.clearBreak, and also clear the local context.editorEnter editor mode.exitExit the repl.helpPrint help message.loadLoad JS from a file into the REPL session.saveSave all evaluated commands in this REPL session to a file
- BRAIN:
net.loadFromJSON(path)- loads net from json file(<path to file>)saveToJSON(path)- saves net to json file(<path to file>)train(config)- starts training nn(<brain.js train config>)run(data)- run's the nn(<data>)loadTrainingData(path)- loads training data from json file(<path to file>)