コード例 #1
0
 // Constructors //
 public NeuralNetworkFactory(string Name, DataSet Data, Predicate Where)
 {
     this._HiddenLayers = new List<NN_Layer>();
     this._Links = new NodeLinkMaster();
     this.DefaultRule = "irprop+";
     this.DefaultActivator = ScalarFunctionFactory.Select("BinarySigmoid");
     this.DefaultReduction = new NodeReductionLinear();
     this._SourceData = Data;
     this._Where = Where;
     this._name = Name;
 }
コード例 #2
0
ファイル: NeuralNetwork.cs プロジェクト: pwdlugosz/Horse
        // Constructor //
        public NeuralNetwork(string Name, NodeLinkMaster Links, NodeSet Nodes, ResponseNodeSet Responses, NeuralRule Rule, Matrix Data)
        {

            // Set values //
            this._Links = Links;
            this._Nodes = Nodes;
            this._Responses = Responses;
            this._Rule = Rule;
            this._Data = Data;
            this._name = Name;

            // Initialize //
            this.Initialize();
            
        }
コード例 #3
0
            internal static void LinkChildren(NodeLinkMaster Master, NN_Layer TopLayer, NN_Layer BottomLayer)
            {

                foreach (NeuralNode n in TopLayer._Nodes)
                {
                    if (n.Affinity != NeuralNodeAffinity.Static)
                        n.LinkChildren(Master, BottomLayer._Nodes);
                }

            }