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().