Package com.github.neuralnetworks.calculation.neuronfunctions

Examples of com.github.neuralnetworks.calculation.neuronfunctions.AparapiSoftReLU.addActivationFunction()


    if (nn.getOutputLayer() == l) {
        if (outputCC != null) {
      lc.addConnectionCalculator(l, outputCC);
        } else {
      AparapiSoftReLU c = new AparapiSoftReLU();
      c.addActivationFunction(new SoftmaxFunction());
      lc.addConnectionCalculator(l, c);
        }
    } else if (Util.isConvolutional(l)) {
        lc.addConnectionCalculator(l, new AparapiConv2DSoftReLU());
    } else {
View Full Code Here


    public static RBMLayerCalculator rbmSoftReluSoftRelu(RBM rbm) {
  RBMLayerCalculator lc = new RBMLayerCalculator();

  AparapiSoftReLU c1 = new AparapiSoftReLU();
  c1.addActivationFunction(new SoftmaxFunction());
  lc.addConnectionCalculator(rbm.getVisibleLayer(), c1);


  AparapiSoftReLU c2 = new AparapiSoftReLU();
  c2.addActivationFunction(new SoftmaxFunction());
View Full Code Here

  c1.addActivationFunction(new SoftmaxFunction());
  lc.addConnectionCalculator(rbm.getVisibleLayer(), c1);


  AparapiSoftReLU c2 = new AparapiSoftReLU();
  c2.addActivationFunction(new SoftmaxFunction());
  lc.addConnectionCalculator(rbm.getHiddenLayer(), c2);

  populateBiasLayers(lc, rbm);

  return lc;
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.