|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectLearning
public class Learning
A collection of static functions for performing learning on BeliefNetworks. This class cannot be instantiated.
Field Summary | |
---|---|
static double |
DOUBLE_BIAS_VALUE
|
static String |
STR_EM_FILENAME_PREFIX
|
Constructor Summary | |
---|---|
Learning()
|
Method Summary | |
---|---|
static double |
getLastLikelihood()
Returns the -log(Likelihood) for the last call to learnParamsEM(). |
static BeliefNetwork |
learnParamsEM(BeliefNetwork bn,
LearningData data2,
double threshold,
int maxIterations,
Dynamator dyn,
boolean withBias)
|
static BeliefNetwork |
learnParamsEM(BeliefNetwork bn,
LearningData data,
Dynamator dynamator,
boolean withBias)
Returns a new BeliefNetwork with CPTs learned from one interation of the EM learning algorithm. |
static Thread |
learnParamsEM(BeliefNetwork bn,
LearningData data2,
Dynamator dynamator,
double threshold,
int maxIterations,
boolean withBias,
ProgressMonitor pm,
EMThread.LearningListener ll)
|
static BeliefNetwork |
learnParamsEM(BeliefNetwork bn,
LearningDataOld data,
double threshold,
int maxIterations,
Dynamator dyn,
boolean withBias)
Returns a new BeliefNetwork with CPTs learned from the EM learning algorithm. |
static BeliefNetwork |
learnParamsEM(BeliefNetwork bn,
LearningDataOld data,
Dynamator dynamator,
boolean withBias)
Returns a new BeliefNetwork with CPTs learned from one interation of the EM learning algorithm. |
static Thread |
learnParamsEM(BeliefNetwork bn,
LearningDataOld data,
Dynamator dynamator,
double threshold,
int maxIterations,
boolean withBias,
ProgressMonitor pm,
EMThread.LearningListener ll)
|
static String |
renamePathForEmOutput(String oldHuginName)
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final double DOUBLE_BIAS_VALUE
public static final String STR_EM_FILENAME_PREFIX
Constructor Detail |
---|
public Learning()
Method Detail |
---|
public static BeliefNetwork learnParamsEM(BeliefNetwork bn, LearningDataOld data, double threshold, int maxIterations, Dynamator dyn, boolean withBias) throws ArithmeticException
bn
- Initial BeliefNetwork.data
- Complete or incomplete LearningDataOld for variables in "bn".threshold
- Convergence threshold.maxIterations
- Learning will repeat no more than this number of times.
ArithmeticException
public static BeliefNetwork learnParamsEM(BeliefNetwork bn, LearningData data2, double threshold, int maxIterations, Dynamator dyn, boolean withBias) throws ArithmeticException
ArithmeticException
public static Thread learnParamsEM(BeliefNetwork bn, LearningDataOld data, Dynamator dynamator, double threshold, int maxIterations, boolean withBias, ProgressMonitor pm, EMThread.LearningListener ll)
bn
- Initial BeliefNetwork.data
- Complete or incomplete LearningDataOld for variables in "bn".threshold
- Convergence threshold.maxIterations
- Learning will repeat no more than this number of times.pm
- The progress monitor to update.ll
- The LearningListener that will be notified when the EM algorithm terminates.public static Thread learnParamsEM(BeliefNetwork bn, LearningData data2, Dynamator dynamator, double threshold, int maxIterations, boolean withBias, ProgressMonitor pm, EMThread.LearningListener ll)
public static BeliefNetwork learnParamsEM(BeliefNetwork bn, LearningDataOld data, Dynamator dynamator, boolean withBias) throws ArithmeticException
bn
- Initial BeliefNetwork.data
- Complete or incomplete LearningDataOld for variables in "bn".
ArithmeticException
public static BeliefNetwork learnParamsEM(BeliefNetwork bn, LearningData data, Dynamator dynamator, boolean withBias) throws ArithmeticException
bn
- Initial BeliefNetwork.data
- Complete or incomplete LearningData for variables in "bn".
ArithmeticException
public static double getLastLikelihood()
public static String renamePathForEmOutput(String oldHuginName)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |