Package deepnetts.net
Class ConvolutionalNetwork
- All Implemented Interfaces:
TrainerProvider<BackpropagationTrainer>
,Serializable
public class ConvolutionalNetwork
extends NeuralNetwork<BackpropagationTrainer>
implements Serializable
Convolutional neural network is an extension of feed forward network, which can
include 2D and 3D adaptive preprocessing layers (Convolutional and MaxPooling layer),
which is specialized to learn to recognize features in images.
Images are fed as 3-dimensional tensors (multidimensional arrays).
Although primary used for images, they can also be applied to other types of problems.
- Author:
- Zoran Sevarac
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for a convolutional neural network. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConvolutionalNetwork.Builder
builder()
Returns a builder for theConvolutionalNetwork
Returns delta weights for all layers.Returns outputs of all layers.Returns weights from all layers in this network as a list of tensors.void
setInput
(TensorBase input) Sets network input and calculates entire network (triggers forward pass).void
setWeights
(List<String> weights) Sets network's weights for all layers.Methods inherited from class deepnetts.net.NeuralNetwork
applyWeightChanges, backward, getInputLayer, getL1RegSum, getL2RegSum, getLabel, getLayerAt, getLayers, getLossFunction, getMode, getNormalizer, getOutput, getOutputLabel, getOutputLabels, getOutputLayer, getPreprocessing, getThreadPool, getTrainer, load, predict, save, setLabel, setLossFunction, setMode, setNormalizer, setOutputError, setOutputLabels, setPreprocessing, setTrainer, test, toString, train
-
Method Details
-
setInput
Description copied from class:NeuralNetwork
Sets network input and calculates entire network (triggers forward pass).- Overrides:
setInput
in classNeuralNetwork<BackpropagationTrainer>
- Parameters:
input
- input tensor
-
builder
Returns a builder for theConvolutionalNetwork
- Returns:
- builder instance
-
getWeights
Returns weights from all layers in this network as a list of tensors.- Returns:
- all network's weights
-
setWeights
-
getDeltaWeights
Returns delta weights for all layers. Delta weights are weight changes calculated during the training procedure. Useful for debugging- Returns:
-
getLayersOutputs
Returns outputs of all layers. Useful for debugging- Returns:
-