manual:weightmonitor
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| manual:weightmonitor [2016/08/22 16:52] – Adds output format zenke | manual:weightmonitor [2017/04/24 19:14] (current) – Changes links to fzenke.net zenke | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| This class monitors one or multiple synaptic weights over time and writes them to a human readable ASCII file. | This class monitors one or multiple synaptic weights over time and writes them to a human readable ASCII file. | ||
| - | + | For the full class reference see its | |
| - | + | [[http:// | |
| ===== Usage example ===== | ===== Usage example ===== | ||
| Line 29: | Line 28: | ||
| ==== Adding a specific synaptic connection ==== | ==== Adding a specific synaptic connection ==== | ||
| - | If you are interested in a specific synaptic connection, you can add it to the list using | + | If you are interested in a specific synaptic connection, you can add it to the list using the pre and post indices ([[NeuronID]]) | 
| <code c++> | <code c++> | ||
| - | wmon-> | + | wmon-> | 
| </ | </ | ||
| or if you have a pointer '' | or if you have a pointer '' | ||
| Line 67: | Line 66: | ||
| There is a similar function which takes two filenames and allows you to load the structure of SynFireChains into the WeightMonitor. | There is a similar function which takes two filenames and allows you to load the structure of SynFireChains into the WeightMonitor. | ||
| + | |||
| + | |||
| + | ==== Adding a list of connections ==== | ||
| + | |||
| + | Alternatively you can add a list of neurons to the list as follows: | ||
| + | <code c++> | ||
| + | int psize = 100; // block size | ||
| + | WeightMonitor * wmon = new WeightMonitor( con, sys-> | ||
| + | for ( int i = 0 ; i < 5 ; ++i ) { | ||
| + | for ( int j = 0 ; j < 5 ; ++j ) { | ||
| + |                 std:: | ||
| + |                 sublist.resize(50); | ||
| + |                 wmon-> | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| For additional ways of loading weights to the least also see: | For additional ways of loading weights to the least also see: | ||
| - | http://www.fzenke.net/ | + | http:// | 
| ===== Output format ===== | ===== Output format ===== | ||
| - | The WEightMonitor  | + | The WeightMonitor  | 
| + | |||
| + | This is shown in the example below. | ||
| < | < | ||
| - | 0.000000 1.828218e-01 2.638069e-01 4.180011e-01 3.159941e-01 -3.243134e-02 2.298030e-02 -4.769757e-01 -6.896563e-03 -1.286910e-01 6.167978e-01  | + | 30.000000 1.600000e-01 1.600000e-01 | 
| - | 0.100000  | + | 30.100000 1.600000e-01 1.600000e-01 | 
| - | 0.200000 1.828218e-01 2.638069e-01 4.180011e-01 3.159941e-01 -3.243134e-02 2.298030e-02 -4.769757e-01 -6.896563e-03 -1.286910e-01 6.167978e-01 -1.092905e-02 -7.365672e-02  | + | 30.200000 1.600000e-01 1.600000e-01 | 
| + | 30.300000  | ||
| + | 30.400000  | ||
| + | 30.500000  | ||
| + | 30.600000  | ||
| + | 30.700000 1.600000e-01 1.600000e-01 | ||
| + | 30.800000 1.600000e-01 1.599996e-01 | ||
| + | 30.900000  | ||
| + | 31.000000  | ||
| + | 31.100000  | ||
| + | 31.200000 1.600000e-01 1.599996e-01 | ||
| + | 31.300000 1.600000e-01 1.599996e-01 | ||
| + | 31.400000 1.600000e-01 1.599996e-01 | ||
| + | 31.500000  | ||
| + | 31.600000 1.600000e-01 1.691309e-01 | ||
| + | 31.700000  | ||
| + | 31.800000 1.600000e-01 1.691309e-01 | ||
| + | 31.900000  | ||
| ... | ... | ||
| </ | </ | ||
| + | |||
| + | Which can be plotted easily (for instance with | ||
| + | https:// | ||
| + | {{ : | ||
| + | The above example was recorded with [[examples: | ||
manual/weightmonitor.1471884725.txt.gz · Last modified: 2016/08/22 16:52 by zenke
                
                