How to do it...

  1. Use setOutputs() to set the output labels: 
compGraphBuilder.setOutputs("predictSequence");
  1. Construct an output layer using the addLayer() method and RnnOutputLayer:
compGraphBuilder.addLayer("predictSequence", new RnnOutputLayer.Builder(LossFunctions.LossFunction.MCXENT)
.activation(Activation.SOFTMAX).nIn(10).nOut(numOfClasses).build(), "L1");
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset