Skip to content

2.2 Network File Format

Nick Oppen edited this page Dec 15, 2013 · 3 revisions

Table of Contents

Network File (.enn)

Version Clause

 version(<major version>,<minor version>,<revision>)

The version clause refers to the format version of the .enn file. This is to allow backwards compatibility as the file format changes. The version clause appears first in the file

E.g.

 version(1,0,0)

Name Clause

 name(<network name>,<major version>,<minor version>,<revision>)

The name clause contains the name of the network and its version status.

E.g.

 name(save2,0,0,0)

Network Topology Clause

 networkTopology(<number of input nodes>,<number of hidden nodes>,<number of output nodes>)

The network topology clause contains the network topology. It must precede any other clause that requires the shape of the network to be know (i.e. node, link, inputoutputvector and inputvector see below).

E.g.

 networkTopology(2,2,2)

Learning Clause

 learning(<learning rate>,<momentum>)

The learning clause contains the learning information applied to the learning phase.

E.g.

 learning(0.50,0.00)

Layer Modifier Clause

There is only one layer modifier available. This indicates that the network has a unary bias node added to the input layer:

 layerModifier(0, biasNode:true)

Comment Clause

 comment(<text>)

The comment clause can contain any text and will be ignored. Comments can occur anywhere in the file.

E.g.

 comment(link count: 2)

Node Clause

 node(<layer number>,<node number>,<bias>)

The node clause stores the node bias for each node.

E.g.

 node(1,0,0.54344648)

Link Clause

 link(<layer number>,<node number>,<link number>,<weight>)

The link clause stores the link weight for each link.

E.g.

 link(0,2,1,2.71911407)