示例#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);
        }
示例#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);
        }