cazala / synaptic

architecture-free neural network library for node.js and the browser
http://caza.la/synaptic
Other
6.92k stars 666 forks source link

Clearing Context for LSTM #158

Closed avikj closed 7 years ago

avikj commented 7 years ago

Is it possible to clear the context for the LSTM provided in this library? This would be useful for using multiple sequences for training. For example, if training a network to perform binary addition, for every new set of numbers being added, context should be reset.

cazala commented 7 years ago

Yes, myNetwork.clear() clears all the traces keeping the weights and states -> link

avikj commented 7 years ago

Thanks for the quick reply! Is there documentation for the Network API and other modules anywhere?

cazala commented 7 years ago

There's some documentation on the Wiki, but it's not complete :/