|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectInstanceSet
public class InstanceSet
An InstanceSet is a set of instances to be used in a machine learning problem, generally as either a training set or a test set.
Field Summary | |
---|---|
static java.lang.String |
commentStart
The character used to start comments in .arff files. |
Constructor Summary | |
---|---|
InstanceSet(AttributeSet attributeSet,
java.util.ArrayList<Instance> instances)
Construct an InstanceSet from a list of instances |
|
InstanceSet(java.lang.String inputFilename)
Construct an InstanceSet by reading a .arff file with the given filename |
Method Summary | |
---|---|
AttributeSet |
getAttributeSet()
Get the set of attributes used by all the instances in this instance set. |
java.util.ArrayList<Instance> |
getInstances()
Get a list of all instances in this instance set. |
int |
getNumInstances()
Get the number of instances in this instance set. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String commentStart
Constructor Detail |
---|
public InstanceSet(java.lang.String inputFilename) throws DecisionTreeException, java.io.IOException
inputFilename
- name of the file to read
java.io.IOException
DecisionTreeException
java.io.IOException
java.lang.Exception
public InstanceSet(AttributeSet attributeSet, java.util.ArrayList<Instance> instances)
attributeSet
- the set of attributes for this set of instancesinstances
- a list of the instances to be stored in the instance setMethod Detail |
---|
public AttributeSet getAttributeSet()
public java.util.ArrayList<Instance> getInstances()
public int getNumInstances()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |