public class SOMGroup extends NeuronGroup
Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_ALPHA
Default alpha.
|
static int |
DEFAULT_BATCH_SIZE
Default batchSize.
|
static double |
DEFAULT_DECAY_RATE
The default alphaDecayRate.
|
static double |
DEFAULT_INIT_NSIZE
Default initial neighborhood size.
|
static Layout |
DEFAULT_LAYOUT
Default layout for neuron groups.
|
static double |
DEFAULT_NEIGHBORHOOD_DECAY_AMOUNT
The default neighborhoodDecayAmount.
|
DEFAULT_GROUP_SIZE, FLUSH_FREQUENCY
Constructor and Description |
---|
SOMGroup(Network root,
int numNeurons)
Constructs an SOM network with specified number of neurons.
|
SOMGroup(Network newRoot,
SOMGroup oldNet)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
SOMGroup |
deepCopy() |
double |
getAlpha()
get Alpha.
|
double |
getAlphaDecayRate()
Get alphaDecayRate.
|
int |
getBatchSize()
Get the Batch Size.
|
double |
getInitAlpha()
get Initial Alpha.
|
double |
getInitNeighborhoodSize()
Get the initial neighborhoodsize.
|
double |
getNeighborhoodDecayAmount()
Get neighborhoodDecayAmount.
|
double |
getNeighborhoodSize()
Get the current neighborhood size.
|
int |
getNumNeurons()
Get the number of neurons.
|
java.lang.String |
getTypeDescription()
Return a human-readable name for this type of neuron group.
|
void |
randomizeIncomingWeights()
Randomize all weights coming in to this network.
|
void |
recall()
Pushes the weight values of an SOM neuron onto the input neurons.
|
void |
reset()
Resets SOM Network to initial values.
|
void |
setAlphaDecayRate(double alphaDecayRate)
Set alphaDecayRate.
|
void |
setBatchSize(int batchSize)
Set the Batch Size.
|
void |
setInitAlpha(double initAlpha)
Set the initial value for alpha.
|
void |
setInitNeighborhoodSize(double initNeighborhoodSize)
Set the initial neighborhood size.
|
void |
setNeighborhoodDecayAmount(double neighborhoodDecayAmount)
Set neighborhoodDecayAmount.
|
void |
setNumNeurons(int numNeurons)
Set the number of neurons.
|
void |
update()
Update the network.
|
addIncomingSg, addNeuron, addNeuron, addOutgoingSg, applyInputs, applyLayout, applyLayout, clearActivations, clearNeuronList, containsAsIncoming, containsAsOutgoing, containsNeuron, copyActivations, deepCopy, delete, forceSetActivationLevels, forceSetActivations, getActivations, getBetweenNeuronInterval, getBiases, getCenterX, getCenterY, getExternalActivations, getFourCorners, getGridThreshold, getHeight, getIncomingSgs, getIncomingWeights, getLabelsOfActiveNeurons, getLayout, getMaxDim, getMaxX, getMaxY, getMinX, getMinY, getMostActiveNeuron, getNeuronList, getNeuronsInRadius, getNeuronType, getNumSubSamples, getOutgoingSg, getOutgoingWeights, getPosition, getSpikeIndexes, getTestData, getUpdateMethodDesecription, getWidth, inFanInOfSomeNode, isAllClamped, isAllUnclamped, isEmpty, isInputMode, isRecordAsSpikes, isRecording, isSpikingNeuronGroup, isUseSubSampling, offset, printActivations, prune, randomize, randomizeBiases, randomizeOutgoingWeights, readNextInputs, removeIncomingSg, removeNeuron, removeOutgoingSg, resetSubsamplingIndices, setActivationLevels, setActivations, setBetweenNeuronInterval, setClamped, setGridThreshold, setIncrement, setInputMode, setInputValues, setLayout, setLayoutBasedOnSize, setLayoutBasedOnSize, setLocation, setLowerBound, setNeuronType, setNeuronType, setNumSubSamples, setRecordAsSpikes, setSpikingNeuronGroup, setTestData, setUpperBound, setUseSubSampling, setXYZCoordinatesFromFile, size, startRecording, stopRecording, testAndSetIfSpiking, toString, writeActsToFile
getId, getLabel, getParentGroup, getParentNetwork, getStateInfo, hasParentGroup, isMarkedForDeletion, isTopLevelGroup, recursivelySetIds, setId, setLabel, setMarkedForDeletion, setParentGroup, setStateInfo
public static final double DEFAULT_ALPHA
public static final double DEFAULT_INIT_NSIZE
public static final int DEFAULT_BATCH_SIZE
public static final double DEFAULT_DECAY_RATE
public static final double DEFAULT_NEIGHBORHOOD_DECAY_AMOUNT
public static final Layout DEFAULT_LAYOUT
public SOMGroup(Network root, int numNeurons)
numNeurons
- size of this network in neuronsroot
- reference to Network.public SOMGroup deepCopy()
public java.lang.String getTypeDescription()
NeuronGroup
getTypeDescription
in class NeuronGroup
public void randomizeIncomingWeights()
randomizeIncomingWeights
in class NeuronGroup
public void recall()
public void reset()
public void update()
update
in class NeuronGroup
public double getAlpha()
public double getAlphaDecayRate()
public int getBatchSize()
public double getInitAlpha()
public double getInitNeighborhoodSize()
public double getNeighborhoodDecayAmount()
public double getNeighborhoodSize()
public int getNumNeurons()
public void setAlphaDecayRate(double alphaDecayRate)
alphaDecayRate
- decay ratepublic void setBatchSize(int batchSize)
batchSize
- Batch Sizepublic void setInitAlpha(double initAlpha)
initAlpha
- initial alphapublic void setInitNeighborhoodSize(double initNeighborhoodSize)
initNeighborhoodSize
- initial neighborhood size Resets SOM if new.public void setNeighborhoodDecayAmount(double neighborhoodDecayAmount)
neighborhoodDecayAmount
- decay amountpublic void setNumNeurons(int numNeurons)
numNeurons
- number of neurons.