@0x77/brain

0.0.31 • Public • Published

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/brain

Commands

  • REPL:
    • .break Sometimes you get stuck, this gets you out
    • .clear Break, and also clear the local context
    • .editor Enter editor mode
    • .exit Exit the repl
    • .help Print help message
    • .load Load JS from a file into the REPL session
    • .save Save 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>)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.31
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.31
    0
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i @0x77/brain

Weekly Downloads

0

Version

0.0.31

License

WTFPL

Unpacked Size

2.41 kB

Total Files

7

Last publish

Collaborators

  • 0x77