I have the following code but getLabels() seems not to be working for DL4J 1.0.0-M2.1
I am trying to dodge this manual alternative way: String labels = {“Eight”, “Five”, “Four”, “Nine”, “One”, “Seven”, “Six”, “Three”, “Two”, “Zero”};
// Get the output layer index
int outputLayerIdx = model.getConfiguration().getNetworkOutputs().size() - 1;
// Get the output layer
Layer outputLayer = model.getLayer(model.getConfiguration().getNetworkOutputs().get(outputLayerIdx));
// Get the labels for the output layer
String[] labels = ((BaseOutputLayer) outputLayer.conf().getLayer()).getLabels();