A - An enumeration of attributes (features) used to inform the deciderC - The class attribute type (this must either be Double, Boolean, or some kind of enum)public class Dataset<A extends Enum<A>,C>
extends weka.core.Instances
You cannot construct data sets directly. Instead use Decider.createNewDataset().
| Modifier | Constructor and Description |
|---|---|
protected |
Dataset(Decider<A,C> decider) |
| Modifier and Type | Method and Description |
|---|---|
InstanceBuilder<A,C> |
getInstanceBuilder()
Returns a builder for constructing an instance for this data set.
|
void |
load(File file)
Loads this data set from an ARFF file
|
void |
save(File file)
Saves this data set to file, in ARFF format.
|
add, attribute, attribute, attributeStats, attributeToDoubleArray, checkForAttributeType, checkForStringAttributes, checkInstance, classAttribute, classIndex, compactify, copyInstances, delete, delete, deleteAttributeAt, deleteAttributeType, deleteStringAttributes, deleteWithMissing, deleteWithMissing, deleteWithMissingClass, enumerateAttributes, enumerateInstances, equalHeaders, firstInstance, freshAttributeInfo, getRandomNumberGenerator, getRevision, initialize, insertAttributeAt, instance, instancesAndWeights, kthSmallestValue, kthSmallestValue, lastInstance, main, meanOrMode, meanOrMode, mergeInstances, numAttributes, numClasses, numDistinctValues, numDistinctValues, numInstances, partition, quickSort, randomize, readInstance, relationName, renameAttribute, renameAttribute, renameAttributeValue, renameAttributeValue, resample, resampleWithWeights, resampleWithWeights, select, setClass, setClassIndex, setRelationName, sort, sort, stratify, stratStep, stringFreeStructure, stringWithoutHeader, sumOfWeights, swap, test, testCV, toString, toSummaryString, trainCV, trainCV, variance, variancepublic void save(File file) throws Exception
file - a writable fileException - if the file is not writable, or if there is no data to savepublic void load(File file) throws Exception
file - the readable ARFF fileException - if the file is not readable, or does not describe the expected attributespublic InstanceBuilder<A,C> getInstanceBuilder()
Copyright © 2012 David Milne. All Rights Reserved.