Esempio n. 1
0
        public static Layer createLayer(int neuronsCount, Type transferFunctionClass)
        {
            NeuronProperties neuronProperties = new NeuronProperties();

            neuronProperties.setProperty("transferFunction", transferFunctionClass.Name);
            Layer layer = new Layer(neuronsCount, neuronProperties);

            return(layer);
        }
Esempio n. 2
0
        public static Layer createLayer(int neuronsCount, TransferFunctionType transferFunctionType)
        {
            NeuronProperties neuronProperties = new NeuronProperties();

            neuronProperties.setProperty("transferFunction", transferFunctionType.ToString());
            Layer layer = new Layer(neuronsCount, neuronProperties);

            return(layer);
        }