Example ANNeML XML - adam-nnl/ANNeML GitHub Wiki

Below in and example two input, three hidden, one output neural network. A layout like this can be trained on the logic truth tables XAND or XOR.

<?xml version="1.0" encoding="UTF-8"?>
<NNETWORK NNET_NAME="ANNeML_example" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="ANNeML.xsd">
  <SUBNET NNET_V2="0.96" SNET_NAME="XORtest_ANNeML" ADJUST_LOCK="0">
    <LAYER LAYER_NAME="INPUT" TRANSFER_FUNCTION="2">
      <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS="0.0" CNAME="input 1" NNET_V4="0.0" N_ID="IN001">
        <SYNAPSE ORG_NEURODE="INPUT" WEIGHT="1.0"/>
      </NEURODE>
	  <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS="0.0" CNAME="input 2" NNET_V4="0.0" N_ID="IN002">
        <SYNAPSE ORG_NEURODE="INPUT" WEIGHT="1.0"/>
      </NEURODE>
    </LAYER>
    <LAYER LAYER_NAME="HIDDEN" TRANSFER_FUNCTION="2">
      <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS="0.1432" CNAME="h1" NNET_V4="0.0" N_ID="N001">
        <SYNAPSE ORG_NEURODE="IN001" WEIGHT="-0.155"/>
		<SYNAPSE ORG_NEURODE="IN002" WEIGHT="0.105"/>
      </NEURODE>
	  <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS="0.2341" CNAME="h2" NNET_V4="0.0" N_ID="N002">
        <SYNAPSE ORG_NEURODE="IN001" WEIGHT="0.135"/>
		<SYNAPSE ORG_NEURODE="IN002" WEIGHT="0.167"/>
      </NEURODE>
	  <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS="0.3124" CNAME="h3" NNET_V4="0.0" N_ID="N003">
        <SYNAPSE ORG_NEURODE="IN001" WEIGHT="-0.1215"/>
		<SYNAPSE ORG_NEURODE="IN002" WEIGHT="-0.1331"/>
      </NEURODE>	  
    </LAYER>
    <LAYER LAYER_NAME="OUTPUT" NNET_V3="0.0" TRANSFER_FUNCTION="2">
      <NEURODE ACTIVE="-1" ACTIVITY="0.0" BIAS=".1234" CNAME="output" NNET_V4="0.0" N_ID="ON001">
        <SYNAPSE ORG_NEURODE="N001" WEIGHT="0.1609"/>
		<SYNAPSE ORG_NEURODE="N002" WEIGHT="-0.18013"/>
		<SYNAPSE ORG_NEURODE="N003" WEIGHT="0.1582"/>
      </NEURODE>
    </LAYER>	
  </SUBNET>
</NNETWORK>
⚠️ **GitHub.com Fallback** ⚠️