Main Page | Class Hierarchy | Class List | Class Members

kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS Class Reference

Inheritance diagram for kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS:

kddml.Operators.Preprocessing.PreprocessingSettings kddml.Operators.OperatorSettings List of all members.

Public Member Functions

String[] listAttributes ()
Boolean isRequired (String attribute_name)
Boolean isFixed (String attribute_name)
String getDefaultAttributeValue (String attribute_name)
KDDMLScalarType getAttributeType (String attribute_name)

Detailed Description

The operator is used to convert a nominal attribute into a numeric attribute by using its natural rank, as implied by the header specification, or by using the list of numeric labels provided as XML attribute. The natural rank is given by the position in which the single categories occur in the nominal definition contained in the data schema. In this case, the labeling technique assigns 0 to the first category, 1 to the second category and so on. As an example, consider the nominal attribute outlook defined as:

outlook {sunny, overcast, rainy}.
When a sunny value is found in an instance, it is replaced with the number 0. Analogously, numbers 1 and 2 are used for overcast and rainy values respectively. As an alternative to the natural rank, a list of continuous values can be specified as XML attribute. This operator is usually applied to discretize nominal attributes, converting they into numeric attributes and applying then the PP_NUMERIC_DISCRETIZATION operator.
Attributes:


Member Function Documentation

String [] kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS.listAttributes  )  [virtual]
 

Returns the list of attributes belonging to the operator specification.

Returns:
String[]

Implements kddml.Operators.OperatorSettings.

Boolean kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS.isRequired String  attribute_name  )  [virtual]
 

Returns true if a given attribute is required in the operator specification. Returns false if the attribute is implied or fixed. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Implements kddml.Operators.OperatorSettings.

Boolean kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS.isFixed String  attribute_name  )  [virtual]
 

Returns true if a given attribute is fixed (i.e. constant) in the operator specification. Returns false if the attribute is implied or required. Finally, the method returns null if the attribute name do not belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
boolean

Implements kddml.Operators.OperatorSettings.

String kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS.getDefaultAttributeValue String  attribute_name  )  [virtual]
 

Returns the default value related to a given input attribute. Returns null if the attribute do not admit a default value. An attribute can be given any legal value as a default. The attribute value is not required on each element in the document, but if it is not present, it will appear to be the specified default. If the attribute is implied and it is not included in the element, the operator assumes that this is the attribute value.

Parameters:
attribute_name String
Returns:
String

Implements kddml.Operators.OperatorSettings.

KDDMLScalarType kddml.Operators.Preprocessing.PP_NUMERIC_LABELING_SETTINGS.getAttributeType String  attribute_name  )  [virtual]
 

Returns the type related to a given input attribute. KDDML supports the attribute types as expressed by the class KDDMLScalarType. Returns null if the attribute name do no belong to the list of attributes returned by the method listAttributes().

Parameters:
attribute_name String
Returns:
KDDMLScalarType

Implements kddml.Operators.OperatorSettings.


Generated on Thu Feb 23 13:04:53 2006 for kddml by  doxygen 1.4.3