|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.module.AbstractModule
org.jactr.core.module.declarative.four.learning.DefaultDeclarativeLearningModule4
public class DefaultDeclarativeLearningModule4
default declarative learning module. learning is accomplished by attaching listeners to chunks and buffers. For instance, we attach a listener to all chunks so we know when they are accessed (used for base level learning). we also listen to all slot changes so that associative links can be adjusted accordingly. And we listen to the procedural module so that we know which production fired, binding to which chunks so that the associative links can be updated
| Field Summary |
|---|
| Fields inherited from interface org.jactr.core.module.declarative.four.learning.IDeclarativeLearningModule4 |
|---|
ASSOCIATIVE_LEARNING_RATE, BASE_LEVEL_LEARNING_RATE, OPTIMIZED_LEARNING |
| Constructor Summary | |
|---|---|
DefaultDeclarativeLearningModule4()
|
|
| Method Summary | |
|---|---|
void |
dispose()
release any resources. |
double |
getAssociativeLearning()
|
IBaseLevelActivationEquation |
getBaseLevelActivationEquation()
|
double |
getBaseLevelLearning()
|
int |
getOptimizationLevel()
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined. |
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set. |
void |
initialize()
this will be called after all the modules have been installed permitting the module to attach listeners to other modules. |
void |
install(IModel model)
called from the model during IModel.install(IModule). |
boolean |
isAssociativeLearningEnabled()
|
boolean |
isBaseLevelLearningEnabled()
|
boolean |
isLearningEnabled()
|
void |
setAssociativeLearning(double learningRate)
|
void |
setBaseLevelActivationEquation(IBaseLevelActivationEquation equation)
|
void |
setBaseLevelLearning(double learningRate)
|
void |
setLearningEnabled(boolean enable)
|
void |
setOptimizationLevel(int level)
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter |
| Methods inherited from class org.jactr.core.module.AbstractModule |
|---|
delayedFuture, getExecutor, getModel, getName, getSafeName, immediateFuture, immediateReturn, uninstall |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jactr.core.module.IModule |
|---|
getModel, getName |
| Methods inherited from interface org.jactr.core.utils.IInstallable |
|---|
uninstall |
| Constructor Detail |
|---|
public DefaultDeclarativeLearningModule4()
| Method Detail |
|---|
public void install(IModel model)
IModule
install in interface IModuleinstall in interface IInstallableinstall in class AbstractModuleIInstallable.install(org.jactr.core.model.IModel)public void dispose()
IModule
dispose in interface IModuledispose in class AbstractModulepublic int getOptimizationLevel()
getOptimizationLevel in interface IDeclarativeLearningModule4public void setOptimizationLevel(int level)
public double getAssociativeLearning()
getAssociativeLearning in interface IDeclarativeLearningModule4public double getBaseLevelLearning()
getBaseLevelLearning in interface IDeclarativeLearningModule4public boolean isAssociativeLearningEnabled()
isAssociativeLearningEnabled in interface IDeclarativeLearningModule4public boolean isBaseLevelLearningEnabled()
isBaseLevelLearningEnabled in interface IDeclarativeLearningModule4public void setAssociativeLearning(double learningRate)
public void setBaseLevelLearning(double learningRate)
public boolean isLearningEnabled()
isLearningEnabled in interface ILearningModulepublic void setLearningEnabled(boolean enable)
setLearningEnabled in interface ILearningModulepublic void initialize()
IModule
initialize in interface IModuleinitialize in interface IInitializableinitialize in class AbstractModulepublic IBaseLevelActivationEquation getBaseLevelActivationEquation()
getBaseLevelActivationEquation in interface IDeclarativeLearningModule4IDeclarativeLearningModule4.getBaseLevelActivationEquation()public void setBaseLevelActivationEquation(IBaseLevelActivationEquation equation)
org.jactr.core.module.declarative.four.learning.IDeclarativeLearningModule4#setBaseLevelActivationEquation(org.jactr.core.module.declarative.four.learning.IBaseLevelActivationEquation)public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter in interface IParameterizedkey - Description of the Parameter
IParameterized.getParameter(java.lang.String)public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters in interface IParameterizedIParameterized.getPossibleParameters()public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters in interface IParameterizedIParameterized.getSetableParameters()
public void setParameter(java.lang.String key,
java.lang.String value)
IParameterized
setParameter in interface IParameterizedIParameterized.setParameter(java.lang.String,
java.lang.String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||