Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow saving / loading of networks #5

Open
anubisthejackle opened this issue Mar 6, 2015 · 3 comments
Open

Allow saving / loading of networks #5

anubisthejackle opened this issue Mar 6, 2015 · 3 comments

Comments

@anubisthejackle
Copy link
Owner

As the subject says, utilize ConvNetJS' save/load functionality to allow for multi-session networks.

@anubisthejackle anubisthejackle changed the title All saving / loading of networks Allow saving / loading of networks Mar 6, 2015
@jabrena
Copy link

jabrena commented Dec 12, 2015

I will try to add some feature to store data into local storage to refresh the url and load the NN in the same status that previous state.
http://www.w3schools.com/html/html5_webstorage.asp

What is

@anubisthejackle
Copy link
Owner Author

function savenet() {
  var j = w.agents[0].brain.value_net.toJSON();
  var t = JSON.stringify(j);
  document.getElementById('tt').value = t;
}

function loadnet() {
  var t = document.getElementById('tt').value;
  var j = JSON.parse(t);
  w.agents[0].brain.value_net.fromJSON(j);
  stoplearn(); // also stop learning
  gonormal();
}

@anubisthejackle
Copy link
Owner Author

The above is how Karpathy handles it on his demo for the deepqlearn class

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants