You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the (de)serialization features of the NeuralNetwork library does not preserve the activation function. The default activation function (currently sigmoid) will be used after deserialization.
This could be fixed by adding a replacer function to JSON.stringify().
The text was updated successfully, but these errors were encountered:
enginefeeder101
added a commit
to enginefeeder101/Toy-Neural-Network-JS
that referenced
this issue
Mar 10, 2018
This fixesCodingTrain#96 by using a `replacer` on serialization to preserve the activation function as a string.
On deserialization the function string is `eval()`-ed. This is dangerous as malicious code could be
executed. Might be possible to port this to using `new Function()` instead.
Currently the (de)serialization features of the NeuralNetwork library does not preserve the activation function. The default activation function (currently sigmoid) will be used after deserialization.
This could be fixed by adding a
replacer
function toJSON.stringify()
.The text was updated successfully, but these errors were encountered: