cazala / synaptic

architecture-free neural network library for node.js and the browser

Home Page:http://caza.la/synaptic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't save to JSON?

madser123 opened this issue · comments

Hi. I've been trying to save my network to a file so that i can use it without training it. The "toJSON" doesn't seem to create a file in the directory where my files are.

I'm doing this in the browser not via node.js.

I'm running the HTML file directly from my pc into chrome. I'm not using a server of any kind.

EDIT: it is now also giving me the error: fromJSON is not a function

Calling toJSON() function only makes an exact copy of the neural network and turns it into JSON format. Web Applications are not able to interact with the local file system, therefore you can't actually make a JSON file.

Is there any way to actually "save" the network then? I want to save the trained weights so that i can use the network without training it.

Use Node.exe not Chrome or store the network in a cookie or cloud storage ..

@Pummelchen Thanks! Never thought of cookies as an option. Any chance you have a code snippet as an example of how to do this? Sorry for asking so much..