public interface GroundTruth extends AttributeMap
Instance, must
implement. The ground truth specifies the (true) class labels an Instance is associated
with.| Modifier and Type | Method and Description |
|---|---|
static @NotNull GroundTruth |
forSingleClass(@NotNull Attribute classAttribute,
double value)
Creates and returns a
GroundTruth for a single class. |
static @NotNull GroundTruth |
forSingleClass(int classIndex,
double value)
Creates and returns a
GroundTruth for a single class. |
@NotNull static @NotNull GroundTruth forSingleClass(@NotNull @NotNull Attribute classAttribute, double value)
GroundTruth for a single class.classAttribute - The Attribute that corresponds to the classvalue - The value to be associated with the class@NotNull static @NotNull GroundTruth forSingleClass(int classIndex, double value)
GroundTruth for a single class.classIndex - The index of the Attribute that corresponds to the classvalue - The value to be associated with the class