{"action":"created","issue":{"url":"https://api.github.com/repos/hughperkins/DeepCL/issues/26","labels_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/26/comments","events_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/26/events","html_url":"https://github.com/hughperkins/DeepCL/issues/26","id":96876551,"number":26,"title":"Hook for model serialization","user":{"login":"RyanHope","id":141005,"avatar_url":"https://avatars.githubusercontent.com/u/141005?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanHope","html_url":"https://github.com/RyanHope","followers_url":"https://api.github.com/users/RyanHope/followers","following_url":"https://api.github.com/users/RyanHope/following{/other_user}","gists_url":"https://api.github.com/users/RyanHope/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanHope/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanHope/subscriptions","organizations_url":"https://api.github.com/users/RyanHope/orgs","repos_url":"https://api.github.com/users/RyanHope/repos","events_url":"https://api.github.com/users/RyanHope/events{/privacy}","received_events_url":"https://api.github.com/users/RyanHope/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-23T18:29:35Z","updated_at":"2015-07-24T00:27:51Z","closed_at":null,"body":"I've modified your qlearning example to play tetris and all is fine and dandy but it would be nice to save the net somehow so that I can resume training or use the trained net in another application. Are there any entry points in the current API for doing this or do I need to write something my self?"},"comment":{"url":"https://api.github.com/repos/hughperkins/DeepCL/issues/comments/124276943","html_url":"https://github.com/hughperkins/DeepCL/issues/26#issuecomment-124276943","issue_url":"https://api.github.com/repos/hughperkins/DeepCL/issues/26","id":124276943,"user":{"login":"hughperkins","id":123560,"avatar_url":"https://avatars.githubusercontent.com/u/123560?v=3","gravatar_id":"","url":"https://api.github.com/users/hughperkins","html_url":"https://github.com/hughperkins","followers_url":"https://api.github.com/users/hughperkins/followers","following_url":"https://api.github.com/users/hughperkins/following{/other_user}","gists_url":"https://api.github.com/users/hughperkins/gists{/gist_id}","starred_url":"https://api.github.com/users/hughperkins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hughperkins/subscriptions","organizations_url":"https://api.github.com/users/hughperkins/orgs","repos_url":"https://api.github.com/users/hughperkins/repos","events_url":"https://api.github.com/users/hughperkins/events{/privacy}","received_events_url":"https://api.github.com/users/hughperkins/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T00:27:51Z","updated_at":"2015-07-24T00:27:51Z","body":"Hi Ryan, you can use [WeightsPersister](https://github.com/hughperkins/DeepCL/blob/master/src/weights/WeightsPersister.h) class to persist the weights.  You can see an example of loading the weights at https://github.com/hughperkins/DeepCL/blob/master/src/main/train.cpp#L329 , and saving the weights at https://github.com/hughperkins/DeepCL/blob/master/src/main/train.cpp#L386"}}