manual:sparseconnection
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:sparseconnection [2013/10/10 07:59] – Adds howto init the connection from a file section zenke | manual:sparseconnection [2013/11/01 15:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| Instead of the arguments '' | Instead of the arguments '' | ||
| + | ===== Loading patterns ===== | ||
| + | Patterns can be loaded from a [[pat]] file to an existing weight matrix. Here is an example: | ||
| + | <code cpp> | ||
| + | SparseConnection * con_ee = new SparseConnection(neurons_e, | ||
| + | con_ee-> | ||
| + | </ | ||
| + | In this example first the connection object '' | ||
| + | The full method is the following | ||
| + | <code cpp> | ||
| + | void load_patterns( string filename, AurynWeight strength, bool overwrite = false, bool chainmode = false); | ||
| + | void load_patterns( string filename, AurynWeight strength, int n, bool overwrite = false, bool chainmode = false); | ||
| + | </ | ||
| + | where the filename always specifies the full path to the [[pat]] file. strength signifies the amount by which the weights (given the connections exists is increased) if '' | ||
| + | |||
| + | '' | ||
manual/sparseconnection.1381391981.txt.gz · Last modified: 2013/10/10 07:59 (external edit)
