Package org.encog.ml.data.basic

Examples of org.encog.ml.data.basic.BasicMLData.plus()


  public MLData evaluate(ArrayList<MLData> outputs) {
    int outputSize = outputs.get(0).size();
    BasicMLData acc = new BasicMLData(outputSize);
    for (MLData out: outputs)
    {
      acc = (BasicMLData) acc.plus(out);
    }

    acc = (BasicMLData) acc.times(1.0 / outputs.size());
    return   acc;
View Full Code Here


    int outputSize = outputs.get(0).size();
    BasicMLData acc = new BasicMLData(outputSize);
    for (MLData out: outputs)
    {
      MLData thresholdedOut = threshold(out, threshold, lowValue, highValue);
      acc = (BasicMLData) acc.plus(thresholdedOut);
    }

    acc = (BasicMLData) acc.times(1.0 / outputs.size());
    return threshold(acc, threshold, lowValue, highValue);
  }
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.