public class DefaultDeclarativeLearningModule4 extends AbstractModule implements IDeclarativeLearningModule4, IParameterized
http://jactr.org/node/128}
Modifier and Type | Field and Description |
---|---|
protected double |
_associativeLearningRate |
protected IBaseLevelActivationEquation |
_baseLevelActivationEquation |
protected double |
_baseLevelLearningRate |
protected IModelListener |
_modelListener
this model listener will allow us to perform learning asynchronously, but
block until the current batch of learning is complete before running the
next cycle.
|
protected int |
_optimizationLevel |
ASSOCIATIVE_LEARNING_RATE, BASE_LEVEL_LEARNING_RATE, OPTIMIZED_LEARNING
Constructor and Description |
---|
DefaultDeclarativeLearningModule4() |
Modifier and Type | Method and Description |
---|---|
protected DefaultAssociativeLinkageSystem |
createAssociativeLinkageSystem() |
protected IBaseLevelActivationEquation |
createBaseLevelActivationEquation() |
protected IDeclarativeModuleListener |
createDeclarativeListener() |
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()
called after all the chunks are in place.
|
void |
install(IModel model)
called from the model during IModel.install(IModule).
|
boolean |
isAssociativeLearningEnabled() |
boolean |
isBaseLevelLearningEnabled() |
boolean |
isLearningEnabled() |
void |
reset()
reset the module.
|
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
|
createBuffers, delayedFuture, delayedFuture, getExecutor, getModel, getName, getSafeName, immediateFuture, immediateReturn, setExecutor, uninstall
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
uninstall
getAdapter
protected int _optimizationLevel
protected double _baseLevelLearningRate
protected double _associativeLearningRate
protected IBaseLevelActivationEquation _baseLevelActivationEquation
protected IModelListener _modelListener
public void initialize()
initialize
in interface IModule
initialize
in interface IInitializable
initialize
in class AbstractModule
public void install(IModel model)
IModule
install
in interface IModule
install
in interface IInstallable
install
in class AbstractModule
IInstallable.install(org.jactr.core.model.IModel)
protected IDeclarativeModuleListener createDeclarativeListener()
protected IBaseLevelActivationEquation createBaseLevelActivationEquation()
protected DefaultAssociativeLinkageSystem createAssociativeLinkageSystem()
public void dispose()
IModule
dispose
in interface IModule
dispose
in class AbstractModule
public int getOptimizationLevel()
getOptimizationLevel
in interface IDeclarativeLearningModule4
public void setOptimizationLevel(int level)
public double getAssociativeLearning()
getAssociativeLearning
in interface IDeclarativeLearningModule4
public double getBaseLevelLearning()
getBaseLevelLearning
in interface IDeclarativeLearningModule4
public boolean isAssociativeLearningEnabled()
isAssociativeLearningEnabled
in interface IDeclarativeLearningModule4
public boolean isBaseLevelLearningEnabled()
isBaseLevelLearningEnabled
in interface IDeclarativeLearningModule4
public void setAssociativeLearning(double learningRate)
public void setBaseLevelLearning(double learningRate)
public boolean isLearningEnabled()
isLearningEnabled
in interface ILearningModule
public void setLearningEnabled(boolean enable)
setLearningEnabled
in interface ILearningModule
public IBaseLevelActivationEquation getBaseLevelActivationEquation()
getBaseLevelActivationEquation
in interface IDeclarativeLearningModule4
IDeclarativeLearningModule4.getBaseLevelActivationEquation()
public void setBaseLevelActivationEquation(IBaseLevelActivationEquation equation)
org.jactr.core.module.declarative.four.learning.IDeclarativeLearningModule4#setBaseLevelActivationEquation(org.jactr.core.module.declarative.four.IBaseLevelActivationEquation)
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
key
- Description of the ParameterIParameterized.getParameter(java.lang.String)
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
IParameterized.getPossibleParameters()
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
IParameterized.getSetableParameters()
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
IParameterized.setParameter(java.lang.String,
java.lang.String)