Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

brain-train

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

brain-train

CLI for training a brain.js neural network with ldjson

  • 0.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

brain-train

CLI for creating brain.js Neural Networks on the commandline by piping new line delimited json into it.

Install with npm install brain-train -g.

Usage

cat data.ldjson | brain-train --input input,input2 --output color > network.json

If --input or --ouput are emitted it will use the input and output attributes of your input JSON.

Using --function will output the net as a function that can be used without a brain.js dependency.

Note that it will create a temporary file on your disk for process.stdin first to reuse the stream for the repeated iterations.

Values for training data have to be between 0 and 1.

TODO

Brain expects the data to be between 0 and 1. However most datasets have a wider range of values. Maybe it would be okay to take the max and min values of a row and scale the data to 0 and 1 between those. Maybe this could be done by a "normalize" module.

Use argv as options for the train stream.

Keywords

FAQs

Package last updated on 27 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc