How to do it...

  1. Create an output layer using OutputLayer:
OutputLayer outputLayer = new OutputLayer.Builder().nIn(250).nOut(784)
.lossFunction(LossFunctions.LossFunction.MSE)
.build();
  1. Add OutputLayer to the layer definitions:
builder.layer(new OutputLayer.Builder().nIn(250).nOut(784)
.lossFunction(LossFunctions.LossFunction.MSE)
.build());
..................Content has been hidden....................

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