|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.memphis.ccrg.lida.framework.initialization.InitializableImpl edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl edu.memphis.ccrg.lida.framework.shared.activation.LearnableImpl
public class LearnableImpl
Default implementation of Learnable
.
Field Summary |
---|
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Learnable |
---|
DEFAULT_BASE_LEVEL_ACTIVATION, DEFAULT_LEARNABLE_REMOVAL_THRESHOLD |
Fields inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
DEFAULT_ACTIVATIBLE_REMOVAL_THRESHOLD, DEFAULT_ACTIVATION |
Constructor Summary | |
---|---|
LearnableImpl()
Constructs a new instance with default values. |
|
LearnableImpl(double activation,
double activatibleRemovalThreshold,
double baseLevelActivation,
double learnableRemovalThreshold,
ExciteStrategy exciteStrategy,
DecayStrategy decayStrategy,
ExciteStrategy baseLevelExciteStrategy,
DecayStrategy baseLevelDecayStrategy,
TotalActivationStrategy taStrategy)
Deprecated. This functionality is subsumed by ElementFactory . |
|
LearnableImpl(LearnableImpl l)
Deprecated. This functionality is subsumed by ElementFactory . |
Method Summary | |
---|---|
void |
decay(long ticks)
decay the current activation using the decay strategy. |
void |
decayBaseLevelActivation(long ticks)
decay the Base Level activation using the decay strategy. |
double |
getBaseLevelActivation()
Returns base level activation. |
DecayStrategy |
getBaseLevelDecayStrategy()
Gets decay strategy for the Base Level activation |
ExciteStrategy |
getBaseLevelExciteStrategy()
Gets BaseLevelExciteStrategy |
double |
getLearnableRemovalThreshold()
Gets learnableRemovalThreshold |
double |
getTotalActivation()
Returns the total activation of this activatible |
TotalActivationStrategy |
getTotalActivationStrategy()
Returns TotalActivationStrategy |
void |
init()
If this method is overridden, this init() must be called first! i.e. |
boolean |
isRemovable()
Returns true if this Activatible is removable |
void |
reinforceBaseLevelActivation(double amount)
The Base Level activation of this node is increased using the excitation value as a parameter for the ExciteStrategy. |
void |
setBaseLevelActivation(double a)
Set base level activation. |
void |
setBaseLevelDecayStrategy(DecayStrategy s)
Sets decay strategy for the Base Level activation |
void |
setBaseLevelExciteStrategy(ExciteStrategy s)
Sets BaseLevelExciteStrategy |
void |
setBaseLevelRemovalThreshold(double t)
Sets learnableRemovalThreshold |
void |
setTotalActivationStrategy(TotalActivationStrategy s)
Sets TotalActivationStrategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.shared.activation.ActivatibleImpl |
---|
excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from class edu.memphis.ccrg.lida.framework.initialization.InitializableImpl |
---|
containsParameter, getParam, getParameters, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface edu.memphis.ccrg.lida.framework.shared.activation.Activatible |
---|
excite, getActivatibleRemovalThreshold, getActivation, getDecayStrategy, getExciteStrategy, setActivatibleRemovalThreshold, setActivation, setDecayStrategy, setExciteStrategy |
Methods inherited from interface edu.memphis.ccrg.lida.framework.initialization.Initializable |
---|
containsParameter, getParam, getParameters, init |
Constructor Detail |
---|
public LearnableImpl()
@Deprecated public LearnableImpl(LearnableImpl l)
ElementFactory
.
l
- LearnableImpl
@Deprecated public LearnableImpl(double activation, double activatibleRemovalThreshold, double baseLevelActivation, double learnableRemovalThreshold, ExciteStrategy exciteStrategy, DecayStrategy decayStrategy, ExciteStrategy baseLevelExciteStrategy, DecayStrategy baseLevelDecayStrategy, TotalActivationStrategy taStrategy)
ElementFactory
.
activation
- current activationactivatibleRemovalThreshold
- activation threshold needed for this instance to remain activebaseLevelActivation
- base-level activation for learninglearnableRemovalThreshold
- base-level activation needed for this instance to remain activeexciteStrategy
- ExciteStrategy
for exciting ActivatibleImpl
activation.decayStrategy
- DecayStrategy
for decaying ActivatibleImpl
activation.baseLevelExciteStrategy
- ExciteStrategy
for reinforcing LearnableImpl
base-level activation.baseLevelDecayStrategy
- DecayStrategy
for decaying LearnableImpl
base-level activation.taStrategy
- TotalActivationStrategy
how this instance will calculate its total activation.Method Detail |
---|
public void init()
init
in interface Initializable
init
in class InitializableImpl
Initializable
public void decay(long ticks)
Activatible
decay
in interface Activatible
decay
in class ActivatibleImpl
ticks
- the number of ticks to decaypublic boolean isRemovable()
Activatible
isRemovable
in interface Activatible
isRemovable
in class ActivatibleImpl
public double getTotalActivation()
Activatible
getTotalActivation
in interface Activatible
getTotalActivation
in class ActivatibleImpl
public void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation
in interface Learnable
ticks
- the number of ticks to decaypublic void reinforceBaseLevelActivation(double amount)
Learnable
reinforceBaseLevelActivation
in interface Learnable
amount
- the value to be used to increase the Base Level activation of
this nodepublic ExciteStrategy getBaseLevelExciteStrategy()
Learnable
getBaseLevelExciteStrategy
in interface Learnable
public void setBaseLevelExciteStrategy(ExciteStrategy s)
Learnable
setBaseLevelExciteStrategy
in interface Learnable
s
- the Excite strategy for the current activation.public DecayStrategy getBaseLevelDecayStrategy()
Learnable
getBaseLevelDecayStrategy
in interface Learnable
public void setBaseLevelDecayStrategy(DecayStrategy s)
Learnable
setBaseLevelDecayStrategy
in interface Learnable
s
- the decay strategy for the Base Level activation.public void setBaseLevelActivation(double a)
Learnable
Learnable.reinforceBaseLevelActivation(double)
instead.
setBaseLevelActivation
in interface Learnable
a
- new base level activation amountpublic double getBaseLevelActivation()
Learnable
getBaseLevelActivation
in interface Learnable
public double getLearnableRemovalThreshold()
Learnable
getLearnableRemovalThreshold
in interface Learnable
public void setBaseLevelRemovalThreshold(double t)
Learnable
setBaseLevelRemovalThreshold
in interface Learnable
t
- threshold for removal of this Learnablepublic TotalActivationStrategy getTotalActivationStrategy()
Learnable
TotalActivationStrategy
getTotalActivationStrategy
in interface Learnable
public void setTotalActivationStrategy(TotalActivationStrategy s)
Learnable
TotalActivationStrategy
setTotalActivationStrategy
in interface Learnable
s
- Strategy this Learnable uses to calculate total activation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |