public class DataInstances extends Instances
DataInstance
) with information of evaluation of classification processes.
This class handles the update of the tooltips of the contained instances when the class attribute is changed.EntropyTrianglePanel
,
Serialized FormARFF_DATA, ARFF_RELATION, FILE_EXTENSION, SERIALIZED_OBJ_FILE_EXTENSION
Constructor and Description |
---|
DataInstances(Instances dataset)
Constructor copying all instances and references to the header information from the given set of instances.
|
DataInstances(Instances dataset,
int capacity)
Constructor creating an empty set of instances.
|
DataInstances(String name,
ArrayList<Attribute> attInfo)
Creates an empty set of instances.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(Instance instance)
Adds one instance to the end of the set.
|
boolean |
remove(Object o) |
void |
setClass(Attribute att) |
void |
setClassIndex(int classIndex) |
add, attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, equalHeadersMsg, firstInstance, get, getRandomNumberGenerator, getRevision, insertAttributeAt, instance, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, randomize, readInstance, relationName, remove, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, replaceAttributeAt, resample, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, resampleWithWeights, set, setRelationName, size, sort, sort, stableSort, stableSort, stratify, stringFreeStructure, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, variance, variance, variances
addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
public DataInstances(Instances dataset)
dataset
- the set to be copiedpublic DataInstances(Instances dataset, int capacity)
dataset
- the instances from which the header information is to be takencapacity
- the initial capacity of the new datasetpublic DataInstances(String name, ArrayList<Attribute> attInfo)
name
- the name of the relationattInfo
- the attribute informationpublic void setClassIndex(int classIndex)
setClassIndex
in class Instances
public boolean add(Instance instance)
public boolean remove(Object o)
remove
in interface Collection<Instance>
remove
in interface List<Instance>
remove
in class AbstractCollection<Instance>