matiasvlevi / Dann

Deep Neural Network Library for JavaScript.
https://dannjs.org
MIT License
425 stars 23 forks source link

[🔷 Feature request ]: numToString, reverse from stringToNum. #32

Closed matiasvlevi closed 3 years ago

matiasvlevi commented 3 years ago

Feature

A static function that takes in an array of values and returns a string. Just like Rann.stringToNum reversed. This method should be added to the RNN branch.

Type

Examples

Existing stringToNum method

Rann.stringToNum('hey');
// Returns [0.7604166666666666, 0.7291666666666666, 0.9375]

numToString method

Rann.numToString([0.7604166666666666, 0.7291666666666666, 0.9375]);
// Should return 'hey'


Additional context Be sure to commit changes to the RNN branch.

ramos-papadopoulos commented 3 years ago

I’ll do it