wagenaartje / neataptic

:rocket: Blazing fast neuro-evolution & backpropagation for the browser and Node.js
https://wagenaartje.github.io/neataptic/
Other
1.18k stars 278 forks source link

Copy a network? #163

Closed Bobingstern closed 2 years ago

Bobingstern commented 2 years ago

How do I return a copy of a network?

H4sh3 commented 2 years ago

A simple way is to create a json copy: Network.fromJSON(myNetwork.toJSON())

Bobingstern commented 2 years ago

Oh dang, I don't why I didn't think of that, thanks!