Class WekaInstances<L>
- java.lang.Object
-
- ai.libs.jaicore.basic.sets.ListDecorator<weka.core.Instances,weka.core.Instance,WekaInstance<L>>
-
- ai.libs.jaicore.ml.core.dataset.weka.WekaInstances<L>
-
- All Implemented Interfaces:
AILabeledAttributeArrayDataset<WekaInstance<L>,L>,IDataset<WekaInstance<L>>,IOrderedDataset<WekaInstance<L>>,IOrderedLabeledAttributeArrayDataset<WekaInstance<L>,L>,java.lang.Iterable<WekaInstance<L>>,java.util.Collection<WekaInstance<L>>,java.util.List<WekaInstance<L>>
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 Summary
Constructors Constructor Description WekaInstances(weka.core.Instances list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WekaInstances<L>createEmpty()Creates an empty copy of the same structure (and same type).booleanequals(java.lang.Object obj)java.util.List<IAttributeType<?>>getAttributeTypes()Returns the list of attribute types.intgetFrequency(WekaInstance<L> instance)intgetNumberOfAttributes()Getter for the number of attributes (excluding target attribute).IAttributeType<L>getTargetType()Returns the attribute type of the target attribute.inthashCode()java.lang.StringtoString()-
Methods inherited from class ai.libs.jaicore.basic.sets.ListDecorator
add, add, addAll, addAll, clear, contains, containsAll, get, getList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
-
-
-
Method Detail
-
getTargetType
public IAttributeType<L> getTargetType()
Description copied from interface:AILabeledAttributeArrayDatasetReturns the attribute type of the target attribute.- Specified by:
getTargetTypein interfaceAILabeledAttributeArrayDataset<WekaInstance<L>,L>- Returns:
- The attribute type of the target attribute.
-
getAttributeTypes
public java.util.List<IAttributeType<?>> getAttributeTypes()
Description copied from interface:AILabeledAttributeArrayDatasetReturns the list of attribute types.- Specified by:
getAttributeTypesin interfaceAILabeledAttributeArrayDataset<WekaInstance<L>,L>- Returns:
- The list of attribute types.
-
getNumberOfAttributes
public int getNumberOfAttributes()
Description copied from interface:AILabeledAttributeArrayDatasetGetter for the number of attributes (excluding target attribute).- Specified by:
getNumberOfAttributesin interfaceAILabeledAttributeArrayDataset<WekaInstance<L>,L>- Returns:
- The number of attributes.
-
createEmpty
public WekaInstances<L> createEmpty() throws DatasetCreationException
Description copied from interface:IDatasetCreates an empty copy of the same structure (and same type).- Specified by:
createEmptyin interfaceIDataset<L>- Returns:
- The newly created dataset.
- Throws:
DatasetCreationException
-
hashCode
public int hashCode()
-
equals
public boolean equals(java.lang.Object obj)
-
getFrequency
public int getFrequency(WekaInstance<L> instance)
- Specified by:
getFrequencyin interfaceIDataset<L>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-