MCPcopy Index your code
hub / github.com/janhuenermann/neurojs

github.com/janhuenermann/neurojs @main

repository ↗ · DeepWiki ↗ · + Follow
471 symbols 831 edges 44 files 10 documented · 2% updated 2y ago★ 4,3714 open issues
README

neurojs

neurojs

neurojs is a JavaScript framework for deep learning in the browser. It mainly focuses on reinforcement learning, but can be used for any neural network based task. It contains neat demos to visualise these capabilities, for instance a 2D self-driving car.

Feel free to contribute. The development on such projects is more awesome in a community!

Note: this repo is no longer maintained since more general frameworks such as TensorFlow-JS emerged, which I recommend you to use.

Features

  • Implements a full-stack neural-network based machine learning framework
  • Extended reinforcement-learning support
    • Uniform and prioritised replay buffers
    • Advantage-learning (increasing the action-gap) https://arxiv.org/pdf/1512.04860v1.pdf
    • Support for deep-q-networks and actor-critic models (via deep-deterministic-policy-gradients)
  • Binary import and export of network configurations (weights etc.)
  • High-performance

Examples

Running the examples

npm install
npm start

Open http://localhost:8080/examples/ in your browser and select the demo you want to run.

What's next?

  • More examples (pong, pendulum, snake,improved cars, etc.)
  • Support for web workers
  • LSTM and backpropagation through time

Core symbols most depended-on inside this repo

push
called by 78
src/math/window.js
tinycolor
called by 44
examples/cars/src/tiny-color.js
bound01
called by 24
examples/cars/src/tiny-color.js
set
called by 17
src/rl/replay-buffers.js
parseIntFromHex
called by 13
examples/cars/src/tiny-color.js
set
called by 11
src/shared.js
pad2
called by 11
examples/cars/src/tiny-color.js
on
called by 10
src/shared.js

Shape

Method 251
Function 118
Class 102

Languages

TypeScript100%

Modules by API surface

src/network.js42 symbols
examples/cars/src/sensors.js39 symbols
examples/cars/src/tiny-color.js38 symbols
src/rl/replay-buffers.js33 symbols
examples/waterworld/rldemo.js31 symbols
src/layers/nonlinear.js26 symbols
src/util/file.js21 symbols
src/optim.js21 symbols
src/shared.js18 symbols
src/math/statistics.js18 symbols
src/rl/agent.js15 symbols
src/layers/regression.js15 symbols

Dependencies from manifests, versioned

colors1.4.0 · 1×
fsevents1.2.9 · 1×
webpack4.42.0 · 1×
webpack-cli3.3.11 · 1×
webpack-dev-server3.10.3 · 1×

For agents

$ claude mcp add neurojs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact