public final class ConvolutionalLayer extends AbstractLayer
Constructor and Description |
---|
ConvolutionalLayer(int channels,
Filter filter) |
ConvolutionalLayer(int channels,
Filter filter,
ActivationType activationType) |
ConvolutionalLayer(int channels,
int filterWidth,
int filterHeight)
Create a new instance of convolutional layer with specified number of channels filter
size, default padding (filter-1)/2, and default stride stride value 1,
and specified number of channels.
|
ConvolutionalLayer(int filterWidth,
int filterHeight,
int channels,
int stride,
ActivationType activationType) |
Modifier and Type | Method and Description |
---|---|
void |
applyWeightChanges()
Apply weight changes calculated in backward pass
|
void |
backward()
Backward pass for convolutional layer tweaks the weights in filters.
|
void |
forward()
Forward pass for convolutional layer.
|
Tensor |
getFilterDeltaWeights() |
int |
getFilterDepth() |
int |
getFilterHeight() |
Tensor |
getFilters() |
int |
getFilterWidth() |
float |
getL1WeightSum() |
float |
getL2WeightSum() |
int |
getStride() |
void |
init()
Init dimensions, create matrices, filters, weights, biases and all
internal structures etc.
|
void |
initTransientFields() |
void |
setFilters(String filtersStr) |
void |
setFilters(Tensor filters) |
String |
toString() |
getActivation, getActivationType, getBatchSize, getBiases, getDeltaBiases, getDeltas, getDeltaWeights, getDepth, getGradients, getHeight, getL1Regularization, getL2Regularization, getLearningRate, getMomentum, getNextLayer, getOptimizer, getOptimizerType, getOutputs, getPrevDeltaBiases, getPrevDeltaWeights, getPrevlayer, getWeights, getWidth, isBatchMode, isTrainable, setBatchMode, setBatchSize, setBiases, setDeltas, setL1Regularization, setL2Regularization, setLearningRate, setMomentum, setNextlayer, setOptimizerType, setOutputs, setPrevDeltaWeights, setPrevLayer, setTrainable, setWeights, setWeights
public ConvolutionalLayer(int channels, int filterWidth, int filterHeight)
channels
- number of channels which corresponds to the number of image pixel feature that you want to learn and detectfilterWidth
- filterHeight
- public ConvolutionalLayer(int channels, Filter filter)
public ConvolutionalLayer(int channels, Filter filter, ActivationType activationType)
public ConvolutionalLayer(int filterWidth, int filterHeight, int channels, int stride, ActivationType activationType)
public void init()
init
in class AbstractLayer
public void initTransientFields()
initTransientFields
in class AbstractLayer
public void forward()
forward
in interface Layer
forward
in class AbstractLayer
public void backward()
backward
in interface Layer
backward
in class AbstractLayer
public void applyWeightChanges()
applyWeightChanges
in class AbstractLayer
public Tensor getFilters()
public void setFilters(Tensor filters)
public void setFilters(String filtersStr)
public int getFilterWidth()
public int getFilterHeight()
public int getFilterDepth()
public int getStride()
public Tensor getFilterDeltaWeights()
public float getL1WeightSum()
getL1WeightSum
in class AbstractLayer
public float getL2WeightSum()
getL2WeightSum
in class AbstractLayer
Copyright © 2022. All rights reserved.