예제 #1
0
        ForceHiddenLayer = false; //Force each genome to have at least one hidden layer

        #endregion Fields

        #region Constructors

        public NeuralNetworkParameters(uint InputNeurons, uint OutputNeurons, NeuralNetworkTestDomain Domain)
        {
            if (InputNeurons < 0) throw new Exception("Input neurons must be larger than 0");
            if (OutputNeurons < 0) throw new Exception("Output neurons must be larger than 0");

            this.InputNeurons = InputNeurons;
            this.OutputNeurons = OutputNeurons;
            this.Domain = Domain;
        }
예제 #2
0
        public NeuralNetworkParameters(uint InputNeurons, uint OutputNeurons, NeuralNetworkTestDomain Domain)
        {
            if (InputNeurons < 0)
            {
                throw new Exception("Input neurons must be larger than 0");
            }
            if (OutputNeurons < 0)
            {
                throw new Exception("Output neurons must be larger than 0");
            }

            this.InputNeurons  = InputNeurons;
            this.OutputNeurons = OutputNeurons;
            this.Domain        = Domain;
        }