Fixed a bug in weight learning which caused setting variable defaults to take longer.
@@ -339,7 +339,6 @@ public abstract class WeightLearningApplication implements ModelApplication {
* Set RandomVariableAtoms with training labels to their default values.
*/
protected void setDefaultRandomVariables() {
- for (Map.Entry<RandomVariableAtom, ObservedAtom> entry : trainingMap.getTrainingMap().entrySet()) {
for (RandomVariableAtom atom : trainingMap.getTrainingMap().keySet()) {
atom.setValue(0.0);
}
@@ -348,7 +347,6 @@ public abstract class WeightLearningApplication implements ModelApplication {
atom.setValue(0.0);
}
}
- }
/**
* Create an atom manager on top of the RV database.
