How to do it...

  1. Design the output layer using OutputLayer:
builder.layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)
.nOut(numLabels)
.activation(Activation.SOFTMAX)
.build());
  1. Set the input type using setInputType():
builder.setInputType(InputType.convolutional(30,30,3));
..................Content has been hidden....................

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