|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectInstance
public class Instance
An Instance object represents a single instance in a training or test set
Constructor Summary | |
---|---|
Instance(java.lang.String[] values)
Create a new instance with the given values. |
Method Summary | |
---|---|
java.lang.String[] |
getValues()
Get an array listing the values of this instance, listed in the same order as the AttributeSet for the current machine learning problem. |
void |
print()
print the instance in a legible format |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Instance(java.lang.String[] values)
values
- an array of strings naming the values this instance takes. The
ordering of this array is the same as the AttributeSet being
used for the current machine learning problem.Method Detail |
---|
public void print()
public java.lang.String[] getValues()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |