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

Training SOM #647

Closed Hima-Mehta closed 8 years ago

Hima-Mehta commented 8 years ago

Hello all, Is it Possible to connect an array with the sheet using topo.simulation.connect ? If not how can i train my SOM using not square matrix pattern i.e 400 examples each is vector of size 4. and I want 400 gaussian outputs one for each example

jbednar commented 8 years ago

I'm not sure what you're asking, but topo.sim.connect should allow you to connect any sheet to a SOM, and the input sheet will have an activity array. The matrix does not need to be square; you can set whatever size you like when you create it. If you want a vector of size 4, presumably you want individual control over each number in the vector, not a spatial Gaussian pattern as in our examples, but you can do that by making a special PatternGenerator that uses an array of NumberGenerators. Shouldn't be much code, but I haven't ever tried it!

Hima-Mehta commented 8 years ago

Thanks ! I did it taking as Pattern generators of various pattern.constant patterns and masking it with my pattern.