Class MekaInstance
- java.lang.Object
-
- ai.libs.jaicore.basic.sets.ElementDecorator<weka.core.Instance>
-
- ai.libs.jaicore.ml.classification.multilabel.dataset.MekaInstance
-
- All Implemented Interfaces:
IMekaInstance,org.apache.commons.math3.ml.clustering.Clusterable,org.api4.java.ai.ml.core.dataset.IInstance,org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance,org.api4.java.common.attributedobjects.IElementDecorator<weka.core.Instance>
public class MekaInstance extends ai.libs.jaicore.basic.sets.ElementDecorator<weka.core.Instance> implements IMekaInstance
-
-
Constructor Summary
Constructors Constructor Description MekaInstance(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema, org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance instance)MekaInstance(weka.core.Instance instance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.Object[]getAttributes()java.lang.DoublegetAttributeValue(int pos)int[]getLabel()intgetNumLabels()double[]getPoint()doublegetPointValue(int pos)inthashCode()voidremoveColumn(int columnPos)voidsetAttributeValue(int pos, java.lang.Object value)voidsetLabel(java.lang.Object obj)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.api4.java.ai.ml.core.dataset.IInstance
getNumAttributes, isAttributeValuePresent
-
Methods inherited from interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
isLabelPresent
-
Methods inherited from interface ai.libs.jaicore.ml.classification.multilabel.dataset.IMekaInstance
getElement
-
-
-
-
Constructor Detail
-
MekaInstance
public MekaInstance(weka.core.Instance instance)
-
MekaInstance
public MekaInstance(org.api4.java.ai.ml.core.dataset.schema.ILabeledInstanceSchema schema, org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance instance) throws org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException- Throws:
org.api4.java.ai.ml.core.dataset.serialization.UnsupportedAttributeTypeException
-
-
Method Detail
-
getLabel
public int[] getLabel()
- Specified by:
getLabelin interfaceorg.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
-
getNumLabels
public int getNumLabels()
-
getAttributeValue
public java.lang.Double getAttributeValue(int pos)
- Specified by:
getAttributeValuein interfaceorg.api4.java.ai.ml.core.dataset.IInstance
-
getAttributes
public java.lang.Object[] getAttributes()
- Specified by:
getAttributesin interfaceorg.api4.java.ai.ml.core.dataset.IInstance
-
getPoint
public double[] getPoint()
- Specified by:
getPointin interfaceorg.apache.commons.math3.ml.clustering.Clusterable- Specified by:
getPointin interfaceorg.api4.java.ai.ml.core.dataset.IInstance
-
getPointValue
public double getPointValue(int pos)
- Specified by:
getPointValuein interfaceorg.api4.java.ai.ml.core.dataset.IInstance
-
removeColumn
public void removeColumn(int columnPos)
- Specified by:
removeColumnin interfaceorg.api4.java.ai.ml.core.dataset.IInstance
-
setLabel
public void setLabel(java.lang.Object obj)
- Specified by:
setLabelin interfaceorg.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
-
setAttributeValue
public void setAttributeValue(int pos, java.lang.Object value)- Specified by:
setAttributeValuein interfaceorg.api4.java.ai.ml.core.dataset.IInstance- Specified by:
setAttributeValuein interfaceorg.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
-
hashCode
public int hashCode()
- Overrides:
hashCodein classai.libs.jaicore.basic.sets.ElementDecorator<weka.core.Instance>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classai.libs.jaicore.basic.sets.ElementDecorator<weka.core.Instance>
-
-