I want config a multi-LSTM net with attentions like:
int nIn = featuresCount;
int layerIndex=0;
for (int i = 0; i < this.rnnNeurons.length; ++i) {
listBuilder.layer(layerIndex, new LSTM.Builder().activation(Activation.SOFTSIGN).nIn(nIn).nOut(rnnNeurons[i]).build());
nIn = rnnNeurons[i];
int nhead=8;
++layerIndex;
listBuilder.layer(layerIndex, new RecurrentAttentionLayer.Builder().activation(Activation.SOFTSIGN).nIn(nIn).nOut(nIn).nHeads(nhead).projectInput(true).build());
++layerIndex;
}
listBuilder.layer(layerIndex, new RnnOutputLayer.Builder(new MSELoss())//
.activation(Activation.IDENTITY).nIn(nIn).nOut(1).build());
// listBuilder.setInputType(InputType.recurrent(featuresCount));
MultiLayerConfiguration conf = listBuilder.build();
There is no exception after the program runs, but there is no display on the Training UI. How to configure it correctly?