|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.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 Initializableinit in class InitializableImplInitializablepublic void decay(long ticks)
Activatible
decay in interface Activatibledecay in class ActivatibleImplticks - the number of ticks to decaypublic boolean isRemovable()
Activatible
isRemovable in interface ActivatibleisRemovable in class ActivatibleImplpublic double getTotalActivation()
Activatible
getTotalActivation in interface ActivatiblegetTotalActivation in class ActivatibleImplpublic void decayBaseLevelActivation(long ticks)
Learnable
decayBaseLevelActivation in interface Learnableticks - the number of ticks to decaypublic void reinforceBaseLevelActivation(double amount)
Learnable
reinforceBaseLevelActivation in interface Learnableamount - the value to be used to increase the Base Level activation of
this nodepublic ExciteStrategy getBaseLevelExciteStrategy()
Learnable
getBaseLevelExciteStrategy in interface Learnablepublic void setBaseLevelExciteStrategy(ExciteStrategy s)
Learnable
setBaseLevelExciteStrategy in interface Learnables - the Excite strategy for the current activation.public DecayStrategy getBaseLevelDecayStrategy()
Learnable
getBaseLevelDecayStrategy in interface Learnablepublic void setBaseLevelDecayStrategy(DecayStrategy s)
Learnable
setBaseLevelDecayStrategy in interface Learnables - the decay strategy for the Base Level activation.public void setBaseLevelActivation(double a)
LearnableLearnable.reinforceBaseLevelActivation(double) instead.
setBaseLevelActivation in interface Learnablea - new base level activation amountpublic double getBaseLevelActivation()
Learnable
getBaseLevelActivation in interface Learnablepublic double getLearnableRemovalThreshold()
Learnable
getLearnableRemovalThreshold in interface Learnablepublic void setBaseLevelRemovalThreshold(double t)
Learnable
setBaseLevelRemovalThreshold in interface Learnablet - threshold for removal of this Learnablepublic TotalActivationStrategy getTotalActivationStrategy()
LearnableTotalActivationStrategy
getTotalActivationStrategy in interface Learnablepublic void setTotalActivationStrategy(TotalActivationStrategy s)
LearnableTotalActivationStrategy
setTotalActivationStrategy in interface Learnables - Strategy this Learnable uses to calculate total activation.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||