Package com.neuralnetwork.shared.values

Examples of com.neuralnetwork.shared.values.ErrorValue.updateValue()


       
        DoubleValue n = new DoubleValue(getActivationFunction().activate(sum));
        setValue(n);
        ErrorValue e = ErrorValue.ZERO;
        for (ILink ol : getOutputs()) {
            e.updateValue(ol.getTail().feedforward(n, nnctx));
        }
    return e;
    }

  @Override
View Full Code Here


    @Override
    public IOutputLayer propagate(final INeuralNetContext nnctx) {
      ErrorValue v = new ErrorValue(Double.MAX_VALUE);
      synchronized (nnctx) {
          for (int i = 0; i < getSize(); i++) {
            v.updateValue(getNeuron(i).feedforward(nnctx));
          }
      }
      LOGGER.debug("Propagation Error: " + v.toString());
        return nnctx.getNetwork().getOutputLayer();
    }
View Full Code Here

   */
  public final ErrorValue startTraining() {
    ErrorValue totalTrainError = new ErrorValue(0);
    while (!trainStack.getData().isEmpty()) {
      try {
        totalTrainError.updateValue(new ErrorValue(
        executorService.submit(
            new TrainNetworkSubTask(network,
                trainStack.popSample())).get()));
      } catch (InterruptedException | ExecutionException e) {
        LOGGER.error(e.getMessage());
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.