Public Member Functions | |
DataSet (Attribute[] attrs, String[] labels) | |
void | addInstance (String[] values, String label) |
DataSet Class. Parse a file into a data set, used both for training set and test set.
The attribute IS order in each dataset inside, but not required to be in the same order in different data set.
To find the value of an arbitary attribute, the best way is to use insts.attributes(trainSet.attri.indexOf("SomeAttribute")) WhatTF???????
|
inline |
|
inline |
Add an instance into the data set
values | Value of each attribute, in the order of attributes field |
label | Label of this instance |