| Modifier and Type | Class and Description |
|---|---|
static class |
ClassTag.Factory |
| Modifier and Type | Field and Description |
|---|---|
protected double |
confidence |
protected int |
index |
protected String |
label |
protected int |
numClasses |
protected double[] |
vector |
| Constructor and Description |
|---|
ClassTag(String label,
org.nd4j.linalg.api.ndarray.INDArray vector) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getConfidence() |
int |
getIndex() |
String |
getTag() |
String |
getTag(int index) |
org.nd4j.linalg.api.ndarray.INDArray |
getVector() |
int |
getVectorSize() |
int |
hashCode() |
boolean |
matches(Object obj) |
ClassTag |
setConfidence(double confidence) |
String |
toString() |
protected final String label
protected final int numClasses
protected final double[] vector
protected double confidence
protected final int index
public ClassTag(String label, org.nd4j.linalg.api.ndarray.INDArray vector)
public int getIndex()
public double getConfidence()
getConfidence in interface Tagpublic ClassTag setConfidence(double confidence)
public int getVectorSize()
getVectorSize in interface Tagpublic org.nd4j.linalg.api.ndarray.INDArray getVector()
public boolean matches(Object obj)
Copyright © 2019. All rights reserved.