public class WekaInstances<L> extends ai.libs.jaicore.basic.sets.ListDecorator<weka.core.Instances,weka.core.Instance,WekaInstance<L>> implements IOrderedLabeledAttributeArrayDataset<WekaInstance<L>,L>
| Constructor and Description |
|---|
WekaInstances(weka.core.Instances list) |
| Modifier and Type | Method and Description |
|---|---|
WekaInstances<L> |
createEmpty()
Creates an empty copy of the same structure (and same type).
|
java.util.List<IAttributeType<?>> |
getAttributeTypes()
Returns the list of attribute types.
|
int |
getNumberOfAttributes()
Getter for the number of attributes (excluding target attribute).
|
IAttributeType<L> |
getTargetType()
Returns the attribute type of the target attribute.
|
add, add, addAll, addAll, clear, contains, containsAll, get, getList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArrayclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitadd, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArraypublic WekaInstances(weka.core.Instances list)
throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundExceptionpublic IAttributeType<L> getTargetType()
AILabeledAttributeArrayDatasetgetTargetType in interface AILabeledAttributeArrayDataset<WekaInstance<L>,L>public java.util.List<IAttributeType<?>> getAttributeTypes()
AILabeledAttributeArrayDatasetgetAttributeTypes in interface AILabeledAttributeArrayDataset<WekaInstance<L>,L>public int getNumberOfAttributes()
AILabeledAttributeArrayDatasetgetNumberOfAttributes in interface AILabeledAttributeArrayDataset<WekaInstance<L>,L>public WekaInstances<L> createEmpty() throws DatasetCreationException
IDatasetcreateEmpty in interface IDataset<WekaInstance<L>>DatasetCreationException