コード例 #1
0
ファイル: Network.cs プロジェクト: lynchiem/CBANE
        public Network(NetworkConfig networkConfig, NetworkOrigins origin, int creationGeneration = 0)
        {
            this.UniqueId = Guid.NewGuid();

            this.Origin = origin;
            this.AncestralGeneration = 0;
            this.CreationGeneration  = creationGeneration;

            this.config = networkConfig;

            this.Strength           = double.MinValue;
            this.StagnantEvolutions = 0;

            this.Neurons = new Neuron[this.config.HiddenColumns + 2][];
            this.Axions  = new Axion[this.config.HiddenColumns + 1][];

            this.ConstructNeurons();
            this.ConstructAxions();
        }
コード例 #2
0
 public Supercluster(SuperclusterConfig superclusterConfig, ClusterConfig clusterConfig, NetworkConfig networkConfig)
 {
     this.SuperclusterConfig = superclusterConfig;
     this.ClusterConfig      = clusterConfig;
     this.NetworkConfig      = networkConfig;
 }