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); }
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); }