Package ai.libs.jaicore.ml.weka.dataset
Class WekaInstances
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.dataset.WekaInstances
-
- All Implemented Interfaces:
IWekaInstances,java.lang.Iterable<IWekaInstance>,java.util.Collection<IWekaInstance>,java.util.List<IWekaInstance>,org.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>,org.api4.java.ai.ml.core.dataset.IDataSource<IWekaInstance>,org.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler,org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchemaHandler,org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<IWekaInstance>,org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataSource<IWekaInstance>,org.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>,org.api4.java.common.reconstruction.IReconstructible
public class WekaInstances extends java.lang.Object implements IWekaInstances, org.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>, org.api4.java.common.reconstruction.IReconstructible
-
-
Constructor Summary
Constructors Constructor Description WekaInstances(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dataset)WekaInstances(weka.core.Instances dataset)WekaInstances(weka.core.Instances dataset, org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstruction(org.api4.java.common.reconstruction.IReconstructionInstruction instruction)org.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>createCopy()IWekaInstancescreateEmptyCopy()booleanequals(java.lang.Object obj)org.api4.java.common.reconstruction.IReconstructionPlangetConstructionPlan()java.lang.reflect.Constructor<? extends IWekaInstance>getConstructorForDecoratingItems()java.lang.Object[][]getFeatureMatrix()intgetFrequency(IWekaInstance instance)weka.core.InstancesgetInstances()org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchemagetInstanceSchema()java.lang.Object[]getLabelVector()weka.core.InstancesgetList()java.lang.Class<weka.core.Instance>getTypeOfDecoratedItems()java.lang.Class<IWekaInstance>getTypeOfDecoratingItems()inthashCode()voidremoveColumn(int columnPos)voidremoveColumn(java.lang.String columnName)voidremoveColumn(org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)java.lang.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler
getAttribute, getListOfAttributes, getNumAttributes
-
Methods inherited from interface org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchemaHandler
getLabelAttribute, getRelationName
-
Methods inherited from interface org.api4.java.common.attributedobjects.IListDecorator
add, add, addAll, addAll, clear, contains, containsAll, get, getDecorationForElement, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
-
-
-
-
Constructor Detail
-
WekaInstances
public WekaInstances(weka.core.Instances dataset)
-
WekaInstances
public WekaInstances(weka.core.Instances dataset, org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema)
-
WekaInstances
public WekaInstances(org.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<? extends org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance> dataset)
-
-
Method Detail
-
getInstances
public weka.core.Instances getInstances()
- Specified by:
getInstancesin interfaceIWekaInstances
-
removeColumn
public void removeColumn(int columnPos)
- Specified by:
removeColumnin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>
-
createEmptyCopy
public IWekaInstances createEmptyCopy() throws org.api4.java.ai.ml.core.exception.DatasetCreationException
- Specified by:
createEmptyCopyin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>- Specified by:
createEmptyCopyin interfaceorg.api4.java.ai.ml.core.dataset.IDataSource<IWekaInstance>- Specified by:
createEmptyCopyin interfaceorg.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<IWekaInstance>- Specified by:
createEmptyCopyin interfaceIWekaInstances- Throws:
org.api4.java.ai.ml.core.exception.DatasetCreationException
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<IWekaInstance>- Specified by:
hashCodein interfacejava.util.List<IWekaInstance>- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacejava.util.Collection<IWekaInstance>- Specified by:
equalsin interfacejava.util.List<IWekaInstance>- Overrides:
equalsin classjava.lang.Object
-
getFrequency
public int getFrequency(IWekaInstance instance)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getTypeOfDecoratingItems
public java.lang.Class<IWekaInstance> getTypeOfDecoratingItems()
- Specified by:
getTypeOfDecoratingItemsin interfaceorg.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>
-
getTypeOfDecoratedItems
public java.lang.Class<weka.core.Instance> getTypeOfDecoratedItems()
- Specified by:
getTypeOfDecoratedItemsin interfaceorg.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>
-
getConstructorForDecoratingItems
public java.lang.reflect.Constructor<? extends IWekaInstance> getConstructorForDecoratingItems()
- Specified by:
getConstructorForDecoratingItemsin interfaceorg.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>
-
getList
public weka.core.Instances getList()
- Specified by:
getListin interfaceorg.api4.java.common.attributedobjects.IListDecorator<weka.core.Instances,weka.core.Instance,IWekaInstance>- Specified by:
getListin interfaceIWekaInstances
-
createCopy
public org.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance> createCopy() throws org.api4.java.ai.ml.core.exception.DatasetCreationException, java.lang.InterruptedException
- Specified by:
createCopyin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>- Specified by:
createCopyin interfaceorg.api4.java.ai.ml.core.dataset.IDataSource<IWekaInstance>- Throws:
org.api4.java.ai.ml.core.exception.DatasetCreationExceptionjava.lang.InterruptedException
-
getLabelVector
public java.lang.Object[] getLabelVector()
- Specified by:
getLabelVectorin interfaceorg.api4.java.ai.ml.core.dataset.supervised.ILabeledDataset<IWekaInstance>
-
getInstanceSchema
public org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema getInstanceSchema()
- Specified by:
getInstanceSchemain interfaceorg.api4.java.ai.ml.core.dataset.schema.IInstanceSchemaHandler- Specified by:
getInstanceSchemain interfaceorg.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchemaHandler
-
getFeatureMatrix
public java.lang.Object[][] getFeatureMatrix()
- Specified by:
getFeatureMatrixin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>
-
removeColumn
public void removeColumn(java.lang.String columnName)
- Specified by:
removeColumnin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>
-
removeColumn
public void removeColumn(org.api4.java.ai.ml.core.dataset.schema.attribute.IAttribute attribute)
- Specified by:
removeColumnin interfaceorg.api4.java.ai.ml.core.dataset.IDataset<IWekaInstance>
-
getConstructionPlan
public org.api4.java.common.reconstruction.IReconstructionPlan getConstructionPlan()
- Specified by:
getConstructionPlanin interfaceorg.api4.java.common.reconstruction.IReconstructible
-
addInstruction
public void addInstruction(org.api4.java.common.reconstruction.IReconstructionInstruction instruction)
- Specified by:
addInstructionin interfaceorg.api4.java.common.reconstruction.IReconstructible
-
-