Class AInstance

  • All Implemented Interfaces:
    IClusterableInstance, java.io.Serializable, org.apache.commons.math3.ml.clustering.Clusterable, org.api4.java.ai.ml.core.dataset.IInstance, org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
    Direct Known Subclasses:
    DenseInstance, SparseInstance

    public abstract class AInstance
    extends java.lang.Object
    implements IClusterableInstance, java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AInstance()  
      protected AInstance​(java.lang.Object label)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getLabel()  
      boolean isLabelPresent()  
      void setLabel​(java.lang.Object label)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.commons.math3.ml.clustering.Clusterable

        getPoint
      • Methods inherited from interface org.api4.java.ai.ml.core.dataset.IInstance

        getAttributes, getAttributeValue, getNumAttributes, getPoint, getPointValue, isAttributeValuePresent, removeColumn
      • Methods inherited from interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance

        setAttributeValue
    • Constructor Detail

      • AInstance

        protected AInstance()
      • AInstance

        protected AInstance​(java.lang.Object label)
    • Method Detail

      • getLabel

        public java.lang.Object getLabel()
        Specified by:
        getLabel in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
      • setLabel

        public void setLabel​(java.lang.Object label)
        Specified by:
        setLabel in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance
      • isLabelPresent

        public boolean isLabelPresent()
        Specified by:
        isLabelPresent in interface org.api4.java.ai.ml.core.dataset.supervised.ILabeledInstance