nengo / nengo-1.4

Create and run detailed neural simulations
http://www.nengo.ai/nengo-1.4
96 stars 22 forks source link

.nef files do not store Vocabularies #343

Open tcstewar opened 11 years ago

tcstewar commented 11 years ago

If you build a model that uses semantic pointers, and then save it as a .nef file, when you reload the file the Vocabulary has been lost. This means that the semantic pointer graphs in interactive model will be blank.

I honestly don't think there's a good solution to this. Any ideas?

xchoo commented 11 years ago

Is it possible to store the information somewhere? Like in the comments of the top level network (although, there is a maximum string limit in java)?

Or perhaps this is a sign that we have to start moving stuff into java?

Is there perhaps a "data class" that can be written in java to store information (not sure how viable or doable this is). Then we can use it to store arbitrary data too.

tcstewar commented 11 years ago

It would certainly be possible to shove the Vocabulary.defaults object into the .nef file. I'm not quite sure what the correct loading behaviour would be, though -- do the Vocabs from the .nef file overwrite whatever Vocabs have already been defined? I could see that causing all sorts of unexpected behaviour.