Method | Description | |
---|---|---|
GetActivationFunction ( string name ) : IActivationFunction |
Gets an IActivationFunction from its short name.
|
|
GetNodeType ( string type ) : NodeType |
Gets the NodeType for the specified node type string. Note. we use our own type strings in place of Enum.ToString() to provide more compact XML.
|
|
GetNodeTypeString ( NodeType nodeType ) : string |
Gets the node type string for the specified NodeType. Note. we use our own type strings in place of Enum.ToString() to provide more compact XML.
|
|
LoadCompleteGenomeList ( |
Reads a list of NetworkDefinition(s) from XML that has a containing 'Root' element. The root element also contains the activation function library that the network definitions are associated with.
|
|
ReadActivationFunctionLibrary ( XmlReader xr ) : IActivationFunctionLibrary |
Reads an IActivationFunctionLibrary from the provided XmlReader.
|
|
ReadAttributeAsNodeType ( XmlReader xr, string attrName ) : NodeType |
Read the named attribute and parse its string value as a NodeType.
|
|
ReadCompleteNetworkDefinitionList ( XmlReader xr, bool nodeFnIds ) : List |
Reads a list of NetworkDefinition(s) from XML that has a containing 'Root' element. The root element also contains the activation function library that the genomes are associated with.
|
|
ReadGenome ( |
Reads a NetworkDefinition from XML.
|
|
ReadNetworkDefinition ( XmlReader xr, IActivationFunctionLibrary activationFnLib, bool nodeFnIds ) : |
Reads a network definition from XML. An activation function library is required to decode the function ID at each node, typically the library is stored alongside the network definition XML and will have already been read elsewhere and passed in here.
|
|
Save ( |
Writes a single NetworkDefinition to XML. The XML is returned as a newly created XmlDocument.
|
|
SaveComplete ( IList |
Writes a list of NetworkDefinition(s) to XML within a containing 'Root' element and the activation function library that the genomes are associated with. The XML is returned as a newly created XmlDocument.
|
|
SaveComplete ( |
Writes a single NetworkDefinition to XML within a containing 'Root' element and the activation function library that the genome is associated with. The XML is returned as a newly created XmlDocument.
|
|
Write ( |
Writes an activation function library to XML. This links activation function names to the integer IDs used by network nodes, which allows us emit just the ID for each node thus resulting in XML that is more compact compared to emitting the activation function name for each node.
|
|
Write ( |
Writes an INetworkDefinition to XML.
|
|
WriteComplete ( |
Writes a list of INetworkDefinition(s) to XML within a containing 'Root' element and the activation function library that the genomes are associated with.
|
|
WriteComplete ( |
Writes a list of INetworkDefinition(s) to XML within a containing 'Root' element and the activation function library that the genomes are associated with.
|
|
WriteComplete ( |
Writes a single INetworkDefinition to XML within a containing 'Root' element and the activation function library that the genome is associated with.
|
Method | Description | |
---|---|---|
NormalizeSelectionProbabilities ( IList |
Normalize the selection probabilities of the provided ActivationFunctionInfo items.
|
public static GetActivationFunction ( string name ) : IActivationFunction | ||
name | string | |
return | IActivationFunction |
public static GetNodeType ( string type ) : NodeType | ||
type | string | |
return | NodeType |
public static GetNodeTypeString ( NodeType nodeType ) : string | ||
nodeType | NodeType | |
return | string |
public static LoadCompleteGenomeList ( |
||
xmlNode | The XmlNode to read from. This can be an XmlDocument or XmlElement. | |
nodeFnIds | bool | Indicates if node activation function IDs should be read. If false then /// all node activation function IDs default to 0. |
return | List |
public static ReadActivationFunctionLibrary ( XmlReader xr ) : IActivationFunctionLibrary | ||
xr | XmlReader | |
return | IActivationFunctionLibrary |
public static ReadAttributeAsNodeType ( XmlReader xr, string attrName ) : NodeType | ||
xr | XmlReader | |
attrName | string | |
return | NodeType |
public static ReadCompleteNetworkDefinitionList ( XmlReader xr, bool nodeFnIds ) : List |
||
xr | XmlReader | The XmlReader to read from. |
nodeFnIds | bool | Indicates if node activation function IDs should be read. They are required /// for HyperNEAT genomes but not NEAT |
return | List |
public static ReadGenome ( |
||
xmlNode | The XmlNode to read from. This can be an XmlDocument or XmlElement. | |
activationFnLib | IActivationFunctionLibrary | The activation function library used to decode node activation function IDs. |
nodeFnIds | bool | Indicates if node activation function IDs should be read. They are required /// for HyperNEAT genomes but not for NEAT. If false then all node activation function IDs default to 0. |
return |
public static ReadNetworkDefinition ( XmlReader xr, IActivationFunctionLibrary activationFnLib, bool nodeFnIds ) : |
||
xr | XmlReader | The XmlReader to read from. |
activationFnLib | IActivationFunctionLibrary | The activation function library used to decode node activation function IDs. |
nodeFnIds | bool | Indicates if node activation function IDs should be read. They are required /// for HyperNEAT genomes but not NEAT |
return |
public static Save ( |
||
networkDef | The genome to save. | |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return |
public static SaveComplete ( IList |
||
networkDefList | IList |
List of genomes to write as XML. |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return |
public static SaveComplete ( |
||
networkDef | The NetworkDefinition to save. | |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return |
public static Write ( |
||
xw | ||
activationFnLib | IActivationFunctionLibrary | |
return | void |
public static Write ( |
||
xw | XmlWriter to write XML to. | |
networkDef | INetworkDefinition | Network definition to write as XML. |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return | void |
public static WriteComplete ( |
||
xw | XmlWriter to write XML to. | |
networkDefList | IList |
List of network definitions to write as XML. |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return | void |
public static WriteComplete ( |
||
xw | XmlWriter to write XML to. | |
networkDefList | IList |
List of network definitions to write as XML. |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return | void |
public static WriteComplete ( |
||
xw | XmlWriter to write XML to. | |
networkDef | INetworkDefinition | Network definition to write as XML. |
nodeFnIds | bool | Indicates if node activation function IDs should be emitted. They are required /// for HyperNEAT genomes but not for NEAT. |
return | void |