Exemple #1
0
 public InnerPerceptron(int index, PerceptronProperties perceptronProperties)
     : base(index)
 {
     Index = index;
     PreviousLayer = perceptronProperties.PreviousLayer;
     Threshold = perceptronProperties.ThresholdGenerator.Generate();
     Formula = perceptronProperties.Formula;
 }
        private static PerceptronList PerceptronList(int numberOfPerceptrons, PerceptronProperties perceptronProperties)
        {
            var perceptrons = new List<Perceptron>();

            for (var i = 0; i < numberOfPerceptrons; i++)
                perceptrons.Add(new InnerPerceptron(i + 1, perceptronProperties));

            return new PerceptronList(perceptrons);
        }
        public NeuralNetworkBuilder(ConnectionProperties connectionProperties, PerceptronProperties perceptronProperties, AcceptanceMatcher acceptanceMatcher)
        {
            _layerDictionary = new LayerDictionary();
            _acceptanceMatcher = acceptanceMatcher;

            _layerProperties = new LayerProperties
            {
                ConnectionProperties = connectionProperties,
                PerceptronProperties = perceptronProperties
            };
        }
 public static PerceptronList Build(int numberOfPerceptrons, PerceptronProperties perceptronProperties)
 {
     return perceptronProperties.IsEntryPerceptronList ? EntryPerceptronList(numberOfPerceptrons)
                                                       : PerceptronList(numberOfPerceptrons, perceptronProperties);
 }