Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

[🔷 Feature request ]: RNNs for Dannjs #25

Open
1 of 11 tasks
matiasvlevi opened this issue Jun 25, 2021 · 2 comments
Open
1 of 11 tasks

[🔷 Feature request ]: RNNs for Dannjs #25

matiasvlevi opened this issue Jun 25, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request Priority: High

Comments

@matiasvlevi
Copy link
Owner

matiasvlevi commented Jun 25, 2021

Feature

Recurrent Neural Networks for Dannjs,

Type

  • Dann
  • Matrix
  • Layer
  • Activation functions
  • Loss functions
  • Pool functions
  • Datasets
  • Documentation
  • tests & examples
  • Other
  • Rann (New category for RNNs)

Description

Adding a new class for RNNs would be interesting. The class would likely be called Rann for Recurrent Artificial Neural Network, instead of the Dann acronym which stands for Deep Artificial Neural Network. This would be a pretty time-consuming feature to implement. It would require lots of testing before we can publish the feature to the master branch. Maybe creating another testing/dev branch for this feature would be necessary.

Examples

These are really early examples and might be completely different once we impelent the feature.
This would create the RNN.

const rnn = new Rann(input_neurons, hidden_neurons, output_neurons);

We could feed a Rann a set of sequences

let rnn = new Rann(2, 20, 2);
rnn.train([
  [1, 2],
  [3, 4],
  [5, 6],
  [7, 8]
],
[9, 10]
);
rnn.feed([
  [1, 2],
  [3, 4]
]);
// would return [5, 6]

Note

This is, of course, early speculation about a big addition to the library. It might take quite some time to create & test, and usability might change a whole lot throughout development. I'm assigning this issue to myself because I want to start working on it, but help and criticism are welcome.

@matiasvlevi
Copy link
Owner Author

Added the RNN dev branch here

@matiasvlevi
Copy link
Owner Author

Added Rann.prototype.train method and it seems to work well. Check it out in the RNN branch

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request Priority: High
Projects
None yet
Development

No branches or pull requests

1 participant