Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

kernel.h File Reference

Public headers for kernel.c. More...

#include "cmdparam.h"
#include "lissom.h"
#include "globals.h"

Include dependency graph for kernel.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Functions

cmdstat cmd_testing ( int argc, const char *argv[] )
cmdstat cmd_training ( int argc, const char *argv[] )
 Main command to train the network until the specified iteration. More...

cmdstat cmd_kill_connections ( int argc, const char *argv[] )
 Dead connections have a small negative value on them. More...

cmdstat cmd_init_network ( int argc, const char *argv[] )
void collect_activation_data (int dest_pe)
 Some data is ordinarily left distributed on each PE because it is not needed on every PE for the core LISSOM algorithm. More...

void compute_responses (int ts)
 Add up input and lateral activations. More...

void kernel_init_hook (void)
void init_weights (void)
 Initialize active weights to specified values. More...

void initialize_actlists (void)
 Initialize the activity list counts to zero. More...

void initialize_markers (void)
 Initialize activity markers for optimization of lat_exc computations. More...

int load_current (int load_snap, const char* filename)
 Loads ASCII or binary-format snapshot from filebase.<t> from which to continue. More...

int network_size_connections ( void )
 Total number of connections. More...

double network_size_megabytes ( void )
 Memory requirements per PE. More...

void present_inputs (int learn)
 Main function called at each iteration to present inputs and modify the weights accordingly. More...

void response_to_input (void)
 Optimized version of input response calculation. More...

int save_current (const char* filename)
 Appends snapshot to filebase.<t>. More...

void settle_responses (int learn)
 Propagate input and let the network settle. More...

void setup_latw (void)
 Obsolete version; retained only for use only with kurtosis_contrast. More...

int change_lateral_exc_radius (int old_radius, int new_radius)
 Change lateral excitatory radius for every row. More...


Detailed Description

Public headers for kernel.c.

Header:
/u/nn/cvsroot/lissom/src/kernel.h,v 1.9 2000/04/21 20:47:51 jbednar Exp

Definition in file kernel.h.


Function Documentation

int change_lateral_exc_radius ( int old_radius,
int new_radius )
 

Change lateral excitatory radius for every row.

Definition at line 2272 of file kernel.c.

Referenced by exc_rad_setfn().

cmdstat cmd_init_network ( int argc,
const char * argv[] )
 

Definition at line 1747 of file kernel.c.

cmdstat cmd_kill_connections ( int argc,
const char * argv[] )
 

Dead connections have a small negative value on them.

These connections are not modified afterwards. Nor do they make any significant contribution to the response on the map because of their small value.

Definition at line 2227 of file kernel.c.

cmdstat cmd_testing ( int argc,
const char * argv[] )
 

Definition at line 615 of file kernel.c.

cmdstat cmd_training ( int argc,
const char * argv[] )
 

Main command to train the network until the specified iteration.

Definition at line 553 of file kernel.c.

void collect_activation_data ( int dest_pe )
 

Some data is ordinarily left distributed on each PE because it is not needed on every PE for the core LISSOM algorithm.

This procedure collects such data onto the specified PE for simpler graphing and/or analysis. If pe is Uninitialized the data is broadcast to all PEs. This does not need to be called when NPES==1, but it won't take any time to do so.

Definition at line 2336 of file kernel.c.

Referenced by save_image_data().

void compute_responses ( int ts )
 

Add up input and lateral activations.

Definition at line 965 of file kernel.c.

Referenced by settle_responses().

void init_weights ( void )
 

Initialize active weights to specified values.

Each neuron is assumed to have a receptive field on the retina. The size of the receptive field of a neuron is (RN/N). Each neuron receives input from a square area of radius rf_radius from around the center of its receptive field projected on the retina. With the two retinas, (centerx+RN, centery+RN) gives the corresponding center in the second retina

The total sum of weights is normalized to 1.0.

Definition at line 1924 of file kernel.c.

void initialize_actlists ( void )
 

Initialize the activity list counts to zero.

Definition at line 1160 of file kernel.c.

void initialize_markers ( void )
 

Initialize activity markers for optimization of lat_exc computations.

Initially all markers must be True.

Definition at line 1173 of file kernel.c.

void kernel_init_hook ( void )
 

Definition at line 383 of file kernel.c.

int load_current ( int load_snap,
const char * filename )
 

Loads ASCII or binary-format snapshot from filebase.<t> from which to continue.

The ASCII format is deprecated, and may eventually be phased out.

Definition at line 2453 of file kernel.c.

Referenced by save_current().

int network_size_connections ( void )
 

Total number of connections.

Definition at line 1738 of file kernel.c.

double network_size_megabytes ( void )
 

Memory requirements per PE.

Definition at line 1727 of file kernel.c.

void present_inputs ( int learn )
 

Main function called at each iteration to present inputs and modify the weights accordingly.

When this routine completes, the following data should be available to plot or analyze (on each PE):

 Variable Data Portion Same on each PE?

resp_to_input sum of afferent inp NROWS x NMAX No init_activity initial activity NROWS x NMAX No prev_map_activity settled activity NMAX x NMAX Yes

To get all of init_activity for graphing, must call collect_activation_data() if NPES>1.

Definition at line 827 of file kernel.c.

Referenced by CortexMapWrapper::activate(), and load_current().

void response_to_input ( void )
 

Optimized version of input response calculation.

Definition at line 896 of file kernel.c.

int save_current ( const char * filename )
 

Appends snapshot to filebase.<t>.

The output is ASCII weight values.

The ASCII format is deprecated, and may eventually be phased out.

Definition at line 2367 of file kernel.c.

void settle_responses ( int learn )
 

Propagate input and let the network settle.

Definition at line 867 of file kernel.c.

Referenced by present_inputs().

void setup_latw ( void )
 

Obsolete version; retained only for use only with kurtosis_contrast.

Definition at line 2035 of file kernel.c.


Generated at Mon Aug 21 00:31:05 2000 for RF-LISSOM by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000