ioam / topographica

A general-purpose neural simulator focusing on topographic maps.
topographica.org
BSD 3-Clause "New" or "Revised" License
53 stars 32 forks source link

Submodels: Training patterns should inherit settings from generator sheets #592

Open jlstevens opened 10 years ago

jlstevens commented 10 years ago

Currently, the density and bounds of training patterns generated by the submodel system default to those of Imagen pattern generators. If both sheets and training patterns are specified on a ModelSpec it would be good to have the training patterns inherit the appropriate values from the sheet parameters. For instance, in a GCAL model you could transfer the nominal density across manually as follows:

nominal_density = gcal.sheets.RightRetina.parameters['nominal_density']
topo.sim.specification.training_patterns.RightRetina.xdensity = nominal_density 
topo.sim.specification.training_patterns.RightRetina.ydensity = nominal_density 

It would be good to have an automatic mechanism to achieve this.