Examples of OutputLearningConcept


Examples of trust.jfcm.learning.OutputLearningConcept

          LearningConcept lc = null;
          if(c instanceof LearningConcept)
            lc = (LearningConcept) c;
         
          if(lc != null && lc.isOutput()){
            OutputLearningConcept oc = (OutputLearningConcept) lc;
            System.out.println("  Output concept: "+c.getName());
            System.out.println("  Desirable output: "+oc.getDesirableOutput()+", output: "+oc.getOutput().doubleValue());
            System.out.println("  Error on output concept: "+c.getName()+": "+(oc.getDesirableOutput() - oc.getOutput().doubleValue()));
           
          }
         
      }
    }
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

        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());
        }
       
    }
   
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

        LearningConcept lc = null;
        if(c instanceof LearningConcept)
          lc = (LearningConcept) c;
       
        if(lc != null && lc.isOutput()){
          OutputLearningConcept oc = (OutputLearningConcept) lc;
          oc.setDesirableOutput(e1.getValue());
          //System.out.println("  OutputNode: "+c.getName()+": "+c.getOutput()+", desirable value: "+e1.getValue());
        }
       
    }
  }
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

    /*
     * Specialization of the calculateError() method.
     * For output nodes the error is the difference with the desirable output.
     */
    if(c.isOutput()){
      OutputLearningConcept oc = (OutputLearningConcept) c;
      oc.setError(oc.getDesirableOutput() - oc.getOutput().doubleValue());

      return true;
    }
     
   
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

          LearningConcept lc = null;
          if(c instanceof LearningConcept)
            lc = (LearningConcept) c;
         
          if(lc != null && lc.isOutput()){
            OutputLearningConcept oc = (OutputLearningConcept) lc;
            logger.debug("");
            logger.debug("  Output concept: "+c.getName());
            logger.debug("  Desirable output: "+oc.getDesirableOutput()+", output: "+oc.getOutput().doubleValue());
            logger.debug("  Error on output concept: "+c.getName()+": "+(oc.getDesirableOutput() - oc.getOutput().doubleValue()));
           
          }
         
      }
    }
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

        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);
          //logger.debug("  OutputNode: "+c.getName()+": "+c.getOutput()+", desirable value: "+e1.getValue());
        }
       
    }
   
View Full Code Here

Examples of trust.jfcm.learning.OutputLearningConcept

        LearningConcept lc = null;
        if(c instanceof LearningConcept)
          lc = (LearningConcept) c;
       
        if(lc != null && lc.isOutput()){
          OutputLearningConcept oc = (OutputLearningConcept) lc;
          oc.setDesirableOutput(e1.getValue());
          sum += oc.getDesirableOutput() - oc.getOutput().doubleValue();
        }     
    }
   
    double mean_error = sum / outputs.size();
    //logger.debug("The sum error is: "+mean_error);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.