forked from BrainJS/brain.js
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Special characters being printed out from recurrent net
fixes issue BrainJS#267
- Loading branch information
1 parent
a82faba
commit 28726ea
Showing
6 changed files
with
24 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
* license: MIT (http://opensource.org/licenses/MIT) | ||
* author: Heather Arthur <[email protected]> | ||
* homepage: https://github.com/brainjs/brain.js#readme | ||
* version: 1.2.6 | ||
* version: 1.2.7 | ||
* | ||
* acorn: | ||
* license: MIT (http://opensource.org/licenses/MIT) | ||
|
@@ -4997,13 +4997,12 @@ var DataFormatter = function () { | |
} | ||
}, { | ||
key: 'addSpecial', | ||
value: function addSpecial() { | ||
for (var i = 0; i < arguments.length; i++) { | ||
var special = arguments[i]; | ||
var specialIndex = this.indexTable[special] = this.characters.length; | ||
this.characterTable[specialIndex] = special; | ||
this.characters.push(special); | ||
} | ||
value: function addSpecial(special) { | ||
var printableValue = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ''; | ||
|
||
var specialIndex = this.indexTable[special] = this.characters.length; | ||
this.characterTable[specialIndex] = printableValue; | ||
this.characters.push(special); | ||
} | ||
}, { | ||
key: 'toFunctionString', | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "brain.js", | ||
"description": "Neural network library", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"author": "Heather Arthur <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters