ai.libs.jaicore.ml.core.dataset.attribute.categorical

Class CategoricalAttributeType

  • java.lang.Object
    • ai.libs.jaicore.ml.core.dataset.attribute.categorical.CategoricalAttributeType
    • Constructor Summary

      Constructors 
      Constructor and Description
      CategoricalAttributeType(java.util.List<java.lang.String> domain)
      Constructor setting the domain of the categorical attribute values.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethod and Description
      IAttributeValue<java.lang.String>buildAttributeValue(java.lang.Object value)
      Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.
      IAttributeValue<java.lang.String>buildAttributeValue(java.lang.String stringDescription)
      Builds an attribute value object from a string description.
      java.util.List<java.lang.String>getDomain() 
      booleanisValidValue(java.lang.String value)
      Validates whether a value conforms to this type.
      java.lang.StringtoString() 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • CategoricalAttributeType

        public CategoricalAttributeType(java.util.List<java.lang.String> domain)
        Constructor setting the domain of the categorical attribute values.
        Parameters:
        domain - The domain categorical values may stem from.
    • Method Detail

      • getDomain

        public java.util.List<java.lang.String> getDomain()
        Specified by:
        getDomain in interface ICategoricalAttributeType
        Returns:
        The domain of this categorical attribute.
      • isValidValue

        public boolean isValidValue(java.lang.String value)
        Description copied from interface: IAttributeType
        Validates whether a value conforms to this type.
        Specified by:
        isValidValue in interface IAttributeType<java.lang.String>
        Parameters:
        value - The value to validated.
        Returns:
        Returns true if the given value conforms
      • buildAttributeValue

        public IAttributeValue<java.lang.String> buildAttributeValue(java.lang.Object value)
        Description copied from interface: IAttributeType
        Casts the value to the respective type and returns an attribute value with the creating attribute type as the referenced type.
        Specified by:
        buildAttributeValue in interface IAttributeType<java.lang.String>
        Parameters:
        value - The value of the attribute.
        Returns:
        An attribute value object holding the value of the attribute and referring to this attribute type.
      • buildAttributeValue

        public IAttributeValue<java.lang.String> buildAttributeValue(java.lang.String stringDescription)
        Description copied from interface: IAttributeType
        Builds an attribute value object from a string description. The attribute value references this attribute type.
        Specified by:
        buildAttributeValue in interface IAttributeType<java.lang.String>
        Parameters:
        stringDescription - A String-format description of the attribute's value.
        Returns:
        The attribute value object holding an attribute value interpreting the string description and referring to this attribute type.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14