public class ImageNetLabels extends Object
Constructor and Description |
---|
ImageNetLabels() |
Modifier and Type | Method and Description |
---|---|
String |
decodePredictions(org.nd4j.linalg.api.ndarray.INDArray predictions)
Given predictions from the trained model this method will return a string
listing the top five matches and the respective probabilities
|
String |
getLabel(int n)
Returns the description of tne nth class in the 1000 classes of ImageNet.
|
public String getLabel(int n)
n
- public String decodePredictions(org.nd4j.linalg.api.ndarray.INDArray predictions)
predictions
- Copyright © 2017. All rights reserved.