bindsnet icon indicating copy to clipboard operation
bindsnet copied to clipboard

How to save the trained network weights ?

Open manjunaths opened this issue 8 years ago • 2 comments

I trained the network and after 60000 steps the conv_mnist.py just exited. There was no weights file that I could find. How to test the network with our own inputs ? Or is it supposed to be trained via a notebook file and we keep it 'live' and give custom test images ?

manjunaths avatar Jun 21 '18 12:06 manjunaths

Hi @manjunaths,

conv_mnist.py is just an example script. We haven't provided any guarantees about what it should do; it simply is an example of how BindsNET can be used.

Check out this script for an example of how BindsNET's network.save() and load_network() functions can be used to save and load network objects. Notice that we also use pickle to dump certain "auxiliary" data (used for classification purposes) to disk as well.

As for testing with your own inputs, you can use the functions in the encode module to convert non-negative data into spike trains in a number of different ways.

djsaunde avatar Jun 21 '18 12:06 djsaunde

Thank you for the information. I am going to close this issue now.

manjunaths avatar Jun 21 '18 12:06 manjunaths