/*
* compute errors on the output nodes
*/
double error = 0;
for(int i=0; i<outputs.size(); i++){
EntryStructure e1 = outputs.get(i);
Concept c = e1.getConcept();
if(c==null)
System.err.println("Error: Concept "+e1.getConcept().getName()+" not found");
LearningConcept lc = null;
if(c instanceof LearningConcept)
lc = (LearningConcept) c;
if(lc != null && lc.isOutput()){
OutputLearningConcept oc = (OutputLearningConcept) lc;
error += Math.pow(oc.getOutput() - e1.getValue(), 2);
//System.out.println(" OutputNode: "+c.getName()+": "+c.getOutput()+", desirable value: "+e1.getValue());
}
}