public class WekaInstances extends ai.libs.jaicore.basic.sets.ListDecorator<weka.core.Instances,weka.core.Instance,WekaInstance> implements IDataset<WekaInstance>
| Constructor and Description |
|---|
WekaInstances(weka.core.Instances list) |
| Modifier and Type | Method and Description |
|---|---|
IDataset<WekaInstance> |
createEmpty()
Creates an empty copy with the same attribute types as this IDataset.
|
java.util.List<IAttributeType<?>> |
getAttributeTypes()
Returns the list of attribute types.
|
int |
getNumberOfAttributes()
Getter for the number of attributes (excluding target attribute).
|
IAttributeType<?> |
getTargetType() |
<T> IAttributeType<T> |
getTargetType(java.lang.Class<T> clazz)
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 <T> IAttributeType<T> getTargetType(java.lang.Class<T> clazz)
IDatasetgetTargetType in interface IDataset<WekaInstance>public IAttributeType<?> getTargetType()
getTargetType in interface IDataset<WekaInstance>public java.util.List<IAttributeType<?>> getAttributeTypes()
IDatasetgetAttributeTypes in interface IDataset<WekaInstance>public int getNumberOfAttributes()
IDatasetgetNumberOfAttributes in interface IDataset<WekaInstance>public IDataset<WekaInstance> createEmpty()
IDatasetcreateEmpty in interface IDataset<WekaInstance>