I have created a keras model in python imported into java
model = KerasModelImport.
importKerasSequentialModelAndWeights(aiModelPath);
then i passed an array of values to the model and asked for a prediction or better said for classification
INDArray x_2d = Nd4j.createFromArray(sensorValue);
INDArray prediction = model.output(x_2d);
my output ist nice and korrect
System.out.println(prediction);
[[ 0.9773, 0.0227]]
what i need is the loss function and the accuracy from this predicted values:
model.output(x_2d);
How can i get the values, any idea?