public abstract class FeatureMapsLayer extends Layer
ConvolutionalLayer
,
PoolingLayer
,
ConvolutionalNetwork
,
Serialized FormModifier and Type | Field and Description |
---|---|
protected Dimension2D |
mapDimensions
Dimensions for all 2D layers (feature maps)
|
Constructor and Description |
---|
FeatureMapsLayer()
Creates a new empty feature maps layer with specified kernel
|
FeatureMapsLayer(Dimension2D mapDimensions)
Creates a new empty feature maps layer with specified kernel and
feature map dimensions.
|
FeatureMapsLayer(Dimension2D kernelDimension,
Dimension2D mapDimensions,
int mapCount,
NeuronProperties neuronProp)
Creates new feature maps layer with specified kernel and feature maps.
|
FeatureMapsLayer(Dimension2D mapDimensions,
int mapCount,
NeuronProperties neuronProp) |
Modifier and Type | Method and Description |
---|---|
void |
addFeatureMap(FeatureMapLayer featureMap)
Adds a feature map (2d layer) to this feature map layer
|
abstract void |
connectMaps(FeatureMapLayer fromMap,
FeatureMapLayer toMap)
Creates connections between two feature maps.
|
protected void |
createFeatureMaps(int mapCount,
Dimension2D mapDimensions,
Dimension2D kernelDimension,
NeuronProperties neuronProperties)
Creates and adds specified number of feature maps to this layer
|
FeatureMapLayer |
getFeatureMap(int index)
Returns feature map (Layer2D) at specified index
|
List<FeatureMapLayer> |
getFeatureMaps() |
Dimension2D |
getMapDimensions()
Returns dimensions of feature maps in this layer
|
Neuron |
getNeuronAt(int x,
int y,
int mapIndex)
Returns neuron instance at specified (x, y) position at specified feature map layer
|
int |
getNeuronsCount()
Returns total number of neurons in all feature maps
|
int |
getNumberOfMaps()
Returns number of feature maps in this layer
|
addNeuron, addNeuron, calculate, getLabel, getNeuronAt, getNeurons, getParentNetwork, indexOf, initializeWeights, isEmpty, iterator, removeAllNeurons, removeNeuron, removeNeuronAt, reset, setLabel, setNeuron, setParentNetwork
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
protected Dimension2D mapDimensions
public FeatureMapsLayer()
kernel
- kernel to use for all feature mapspublic FeatureMapsLayer(Dimension2D mapDimensions)
kernel
- kernel used for all feature maps in this layermapDimensions
- mapDimensions of feature maps in this layerpublic FeatureMapsLayer(Dimension2D kernelDimension, Dimension2D mapDimensions, int mapCount, NeuronProperties neuronProp)
kernel
- kernel used for all feature maps in this layermapDimensions
- mapDimensions of feature maps in this layermapCount
- number of feature mapsneuronProp
- properties for neurons in feature mapspublic FeatureMapsLayer(Dimension2D mapDimensions, int mapCount, NeuronProperties neuronProp)
public List<FeatureMapLayer> getFeatureMaps()
public void addFeatureMap(FeatureMapLayer featureMap)
featureMap
- feature map to addprotected final void createFeatureMaps(int mapCount, Dimension2D mapDimensions, Dimension2D kernelDimension, NeuronProperties neuronProperties)
mapCount
- number of feature maps to createdimensions
- feature map dimensionsneuronProperties
- properties of neurons in feature mapspublic FeatureMapLayer getFeatureMap(int index)
index
- index of feature mappublic int getNumberOfMaps()
public Neuron getNeuronAt(int x, int y, int mapIndex)
x
- neuron's x positiony
- neuron's y positionmapIndex
- feature map indexpublic int getNeuronsCount()
getNeuronsCount
in class Layer
public Dimension2D getMapDimensions()
public abstract void connectMaps(FeatureMapLayer fromMap, FeatureMapLayer toMap)
fromMap
- toMap
- Copyright © 2019 Neuroph Project. All rights reserved.