/lstm

A Long Short Term Memory (LSTM) network, for learning purposes

Primary LanguageJavaScript

Long Short Term Memory

A port of a LSTM network that was originally written in python by Nicolas D. Jimenez

This was created as a learning tool since I find it easier to understand code than to understand the math behind LSTM; math symbols look like jibberish.

numjs is used in place of numpy as you need to be able to do operations on matrices. See numpy.js

Its not fast, it was intented to look like the original to make it easer to consume if you are coming from python world. It looks identical to the original, only in JS.

Usage

  1. Install dependencies
npm i
  1. Run test.js
node test
  1. Study test.js && lstm.js

Enjoy!