Coder Social home page Coder Social logo

brain-cluster's Introduction

brain-cluster

Getting brain to train in parallel (on many machines or on many threads).

Getting Started

This uses klyng which is built on fibers.

Get klyng installed globally:

yarn global add klyng

klyng by default runs a beacon on port :2222. You can change the port and add a password in the config file. If you ran the above command it is found here by default ~/.config/yarn/global/node_modules/klyng/config.json.

There is also the machine.json which describes how communication on the cluster will perform.

Scripts

yarn down

Shuts down the klyng beacon. You shouldn't have to do this unless you are running a bunch of klyng commands at once and it things start breaking and it isn't handled nicely

yarn up

Starts the klyng beacon. If running a klyng script and the beacon isn't up you shouldn't need to do that. This might need to be done manually when running on secondary machines.

yarn start

Start cluster.js Currently configured in the packages.json to start 6 local processses. Currently hard coded to train a network in solving the likely problem. As this gets flushed out there will be better documentation and integration with brain.js directly.

yarn cluster

will start cluster.js but will also apply the machines.json This is just in reference to how to run on a cluster, but hasn't been flushed out yet (also the machines.json doesn't mean anything at this point)

yarn example

starts a trivial example, used for concept testing on klyng. This will get removed eventually but is still useful in testing out specific functionality

yarn test-sizes

Like example this is used for testing specifically how large of a data set we can send back and forth from klyng instances. The documentation on klyng isn't stellar so this was a semi-stress test. This will also be removed as brain-cluster matures

brain-cluster's People

Contributors

freddyc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

brain-cluster's Issues

Crap Don't work

So I thought that if we added the weights it would let us combine multiple networks into one.
It isn't working right now either:

  1. I am dead wrong.
  2. I am adding the weights wrong.
    Here is where I need you to double check.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.