All Projects → stormcolor → Gbrain

stormcolor / Gbrain

Licence: mit
GPU Javascript Library for Machine Learning

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Gbrain

Tensorwatch
Debugging, monitoring and visualization for Python Machine Learning and Data Science
Stars: ✭ 3,191 (+6547.92%)
Mutual labels:  ai, reinforcement-learning, deeplearning
Basic reinforcement learning
An introductory series to Reinforcement Learning (RL) with comprehensive step-by-step tutorials.
Stars: ✭ 826 (+1620.83%)
Mutual labels:  ai, reinforcement-learning, deeplearning
Curl
CURL: Contrastive Unsupervised Representation Learning for Sample-Efficient Reinforcement Learning
Stars: ✭ 346 (+620.83%)
Mutual labels:  gpu, reinforcement-learning, deeplearning
Free Ai Resources
🚀 FREE AI Resources - 🎓 Courses, 👷 Jobs, 📝 Blogs, 🔬 AI Research, and many more - for everyone!
Stars: ✭ 192 (+300%)
Mutual labels:  ai, reinforcement-learning, supervised-learning
Text summurization abstractive methods
Multiple implementations for abstractive text summurization , using google colab
Stars: ✭ 359 (+647.92%)
Mutual labels:  ai, reinforcement-learning, deeplearning
Super Mario Bros A3c Pytorch
Asynchronous Advantage Actor-Critic (A3C) algorithm for Super Mario Bros
Stars: ✭ 775 (+1514.58%)
Mutual labels:  ai, reinforcement-learning
Pygame Learning Environment
PyGame Learning Environment (PLE) -- Reinforcement Learning Environment in Python.
Stars: ✭ 828 (+1625%)
Mutual labels:  ai, reinforcement-learning
Lightning Bolts
Toolbox of models, callbacks, and datasets for AI/ML researchers.
Stars: ✭ 829 (+1627.08%)
Mutual labels:  ai, supervised-learning
Autodl
Automated Deep Learning without ANY human intervention. 1'st Solution for AutoDL [email protected]
Stars: ✭ 854 (+1679.17%)
Mutual labels:  ai, deeplearning
Ffdl
Fabric for Deep Learning (FfDL, pronounced fiddle) is a Deep Learning Platform offering TensorFlow, Caffe, PyTorch etc. as a Service on Kubernetes
Stars: ✭ 640 (+1233.33%)
Mutual labels:  ai, deeplearning
Wheels
Performance-optimized wheels for TensorFlow (SSE, AVX, FMA, XLA, MPI)
Stars: ✭ 891 (+1756.25%)
Mutual labels:  ai, gpu
Awesome Ai Books
Some awesome AI related books and pdfs for learning and downloading, also apply some playground models for learning
Stars: ✭ 855 (+1681.25%)
Mutual labels:  ai, reinforcement-learning
Awesome Artificial Intelligence
A curated list of Artificial Intelligence (AI) courses, books, video lectures and papers.
Stars: ✭ 6,516 (+13475%)
Mutual labels:  ai, reinforcement-learning
Pysc2 Examples
StarCraft II - pysc2 Deep Reinforcement Learning Examples
Stars: ✭ 722 (+1404.17%)
Mutual labels:  ai, reinforcement-learning
Super Mario Bros Ppo Pytorch
Proximal Policy Optimization (PPO) algorithm for Super Mario Bros
Stars: ✭ 649 (+1252.08%)
Mutual labels:  ai, reinforcement-learning
Neanderthal
Fast Clojure Matrix Library
Stars: ✭ 927 (+1831.25%)
Mutual labels:  gpu, gpgpu
Drlkit
A High Level Python Deep Reinforcement Learning library. Great for beginners, prototyping and quickly comparing algorithms
Stars: ✭ 29 (-39.58%)
Mutual labels:  gpu, reinforcement-learning
Metalpetal
A GPU accelerated image and video processing framework built on Metal.
Stars: ✭ 907 (+1789.58%)
Mutual labels:  gpu, gpgpu
Artificialintelligenceengines
Computer code collated for use with Artificial Intelligence Engines book by JV Stone
Stars: ✭ 35 (-27.08%)
Mutual labels:  reinforcement-learning, deeplearning
Computesharp
A .NET 5 library to run C# code in parallel on the GPU through DX12 and dynamically generated HLSL compute shaders, with the goal of making GPU computing easy to use for all .NET developers! 🚀
Stars: ✭ 982 (+1945.83%)
Mutual labels:  gpu, gpgpu

gbrain

April 2 2018

Repo not more maintained. Passed to C ++ with new optimization and fixed bugs

ngbrain

GPU Javascript Library for Machine Learning

The creation of this library comes after investigation and work about how avoid out to CPU when perform GPU neural network infference/training along every neural network layers.

I achieved a solution to this for using an Adjacency Matrix which allow know the relation easily on GPU. It's more used in real-time Graph systems GPU based but I can't saw any library using it over GPU neural networks.

Exist a limitation of 4096 neurons by the fact of use an Adjacency Matrix but through this system the leak to CPU is avoided on the middle layers and the CPU infference read is only performed in the last layer (out layer). On entire WebGL applications that may need a neural network system this technique would allow entire neural network execution over GPU.

At the same time batch is executed in the same way, allowing inyect 7 direct experiences at the same time per tick for training or 7 direct infferences minimum at the same time per tick and WebGL context

Each single network can handle until 7 states (training or test) but if you want more than 7 agents only set the agentsCount option and it will make a network cloning and up it in multiples of 7 (at this moment only in regression). When training agentsCount must be not greater than 7.

The Reinforcement Learning class and Plot system belong to Karpathy's RL module (ConvNetJS).

- Basic Linear Regression

- ConvNetJS Reinforcement Learning demo integration - (and WebASM version)

- Reinforcement Learning + convolution

- MNIST Classification

How it works

We not need element-wise matrixs and send information to CPU on every layer result.

On backpropagation the weight data is updated over the Adjacency Matrix

Activation function is included inside own neuron, avoiding to have propagate it to any reluctance layer and so we gain better performance.

At this moment only leaky-relu activation function is implemented.

Installation

npm install gbrain
<script src="../../dist/gbrain/Graph.class.js"></script>
<script src="../../dist/gbrain/KERNEL_DIR.class.js"></script>
<script src="../../dist/gbrain/KERNEL_ADJMATRIX_UPDATE.class.js"></script>
<script src="../../dist/gbrain/VFP_NODE.class.js"></script>
<script src="../../dist/gbrain/VFP_NODEPICKDRAG.class.js"></script>
<script src="../../dist/gbrain/ProccessImg.class.js"></script>
<script src="../../dist/gbrain/gbrain.js"></script>
<script src="../../dist/gbrain/gbrain-rl.js"></script>
OR
<script src="../../dist/gbrain/gbrain.min.js"></script>

Notes

I have been able to learn about this algorithm especially by the Andrew NG Machine Learning course, Karpathy's ConvNetJS, the Matt Mazur paper, Prakash Jay tutorial, Miguel Ángel Lobato & users that shared information on internet. Thanks.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].