convnetjs icon indicating copy to clipboard operation
convnetjs copied to clipboard

Saving experiences in Q-Learning

Open yconst opened this issue 10 years ago • 1 comments

How would I go about if I wanted to save the experiences of the "Brain" object in Deep Q-Learning, and subsequently restore them and continue training? It seems that saving the "experience" object would suffice but I'm not sure..

Thanks

yconst avatar Aug 26 '15 19:08 yconst

I think this would help. Converting brain to string (t);

var j = brain.value_net.toJSON();
var t = JSON.stringify(j); //brain as string

Loading brain from string (t);

var j = JSON.parse(t);
brain.value_net.fromJSON(j);

libraua avatar Nov 29 '15 16:11 libraua