public class WinnerTakeAll extends NeuronGroup
DEFAULT_GROUP_SIZE, DEFAULT_LAYOUT, FLUSH_FREQUENCY
Constructor and Description |
---|
WinnerTakeAll(Network root,
int numNeurons)
Creates a new winner take all network.
|
WinnerTakeAll(Network newRoot,
WinnerTakeAll oldNet)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
WinnerTakeAll |
deepCopy(Network newNetwork)
Returns a deep copy of a copyable group using the same root network as
the original.
|
double |
getLoseValue() |
int |
getNumUnits() |
double |
getRandomProb() |
java.lang.String |
getTypeDescription()
Return a human-readable name for this type of neuron group.
|
double |
getWinValue() |
boolean |
isUseRandom() |
void |
setLoseValue(double loseValue) |
void |
setRandomProb(double randomProb) |
void |
setUseRandom(boolean useRandom) |
void |
setWinValue(double winValue) |
void |
update()
Updates all the neurons in the neuron group according to their
NeuronUpdateRule(s).
|
addIncomingSg, addNeuron, addNeuron, addOutgoingSg, applyInputs, applyLayout, applyLayout, clearActivations, clearNeuronList, containsAsIncoming, containsAsOutgoing, containsNeuron, copyActivations, 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, randomizeIncomingWeights, 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 WinnerTakeAll(Network newRoot, WinnerTakeAll oldNet)
newRoot
- new root netoldNet
- old networkpublic WinnerTakeAll(Network root, int numNeurons)
root
- the network containing this subnetworknumNeurons
- Number of neurons in new networkpublic WinnerTakeAll deepCopy(Network newNetwork)
CopyableGroup
deepCopy
in interface CopyableGroup<NeuronGroup>
deepCopy
in class NeuronGroup
newNetwork
- the parent network for this group, potentially
different from the original (used when copying and pasting
from one network to another)public java.lang.String getTypeDescription()
NeuronGroup
getTypeDescription
in class NeuronGroup
public void update()
NeuronGroup
update
in class NeuronGroup
public double getLoseValue()
public void setLoseValue(double loseValue)
loseValue
- The loseValue to set.public double getWinValue()
public void setWinValue(double winValue)
winValue
- The winValue to set.public int getNumUnits()
public boolean isUseRandom()
public void setUseRandom(boolean useRandom)
useRandom
- the useRandom to setpublic double getRandomProb()
public void setRandomProb(double randomProb)
randomProb
- the randomProb to set