예제 #1
0
 public static NeuralLayeredNetwork Pad(this NeuralLayeredNetwork network, int paddingSize)
 {
     network.AddLayer(new ZeroPaddingLayer(paddingSize));
     return(network);
 }
예제 #2
0
 public static NeuralLayeredNetwork Conv(this NeuralLayeredNetwork network, int filtersCount, int kernelSize, int stride, IWeightsInitializer initializer)
 {
     network.AddLayer(new ConvolutionLayer(filtersCount, kernelSize, stride, initializer));
     return(network);
 }
예제 #3
0
 public static NeuralLayeredNetwork Sigmoid(this NeuralLayeredNetwork network)
 {
     network.AddLayer(new ActivationLayer(new Sigmoid()));
     return(network);
 }
예제 #4
0
 public static NeuralLayeredNetwork Tanh(this NeuralLayeredNetwork network)
 {
     network.AddLayer(new ActivationLayer(new Tanh()));
     return(network);
 }
예제 #5
0
 public static NeuralLayeredNetwork Softmax(this NeuralLayeredNetwork network)
 {
     network.AddLayer(new Softmax());
     return(network);
 }
예제 #6
0
 public static NeuralLayeredNetwork Fully(this NeuralLayeredNetwork network, int neuronsCount)
 {
     network.AddLayer(new FullyConnectedLayer(neuronsCount));
     return(network);
 }
예제 #7
0
 public static NeuralLayeredNetwork Fully(this NeuralLayeredNetwork network, int neuronsCount, IWeightsInitializer initializer)
 {
     network.AddLayer(new FullyConnectedLayer(neuronsCount, initializer));
     return(network);
 }
예제 #8
0
 public static NeuralLayeredNetwork Flatten(this NeuralLayeredNetwork network)
 {
     network.AddLayer(new FlattenLayer());
     return(network);
 }
예제 #9
0
 public static NeuralLayeredNetwork MaxPool(this NeuralLayeredNetwork network, int poolSize, int stride)
 {
     network.AddLayer(new PoolingLayer(poolSize, stride));
     return(network);
 }