public interface LearningSettings
extends java.lang.Cloneable
Each learning algorithm has a specific settings class that indicates which algorithm to use to the following method:
APILearning.performLearning(LearningSettings)
Each class of settings has a method createDefault
that create an instance of the corresponding learning settings with the correct default parameters.
Once the instance is created, it is possible to modify the values of these suttings up to specific methods.
Modifier and Type | Method and Description |
---|---|
LearningSettings |
copy()
Make a deep copy of the learning settings.
|
APIUtils.LEARNING_ALGORITHM |
getLearningAlgorithm()
Return a
LEARNING_ALGORITHM indicating the learning algorithm to use |
double |
getSmoothedProbabilityEstimation()
Returns the weight of the non informative prior, i.e. the virtual case(s) spread uniformly across the joint probability distribution.
|
double |
getStructuralCoefficient()
Returns the weight associated to the structural part used in the Minimum Description Length score.
|
java.lang.String |
getTargetNodeName()
Return the name of the target node if the learning algorithm is supervised.
|
boolean |
isSupervised()
Indicate if the current learning algorithm is supervised (i.e. it needs a target) or not.
|
boolean |
isValid()
Test if the current settings are valid.
|
boolean |
isVerbose()
Tests if the learning algorithm will output information on the standard output stream
System.out during learning. |
java.lang.String |
toString() |
boolean isValid()
java.lang.String toString()
toString
in class java.lang.Object
LearningSettings copy()
APIUtils.LEARNING_ALGORITHM getLearningAlgorithm()
LEARNING_ALGORITHM
indicating the learning algorithm to useboolean isSupervised()
APIUtils.LEARNING_ALGORITHM.isSupervised()
java.lang.String getTargetNodeName()
double getSmoothedProbabilityEstimation()
double getStructuralCoefficient()
boolean isVerbose()
System.out
during learning.