|
Returns the result of evaluating the operator over the passed arguments and attributes.
Attributes are given as hashtable, where the key is the name of the XML attribute related to the operator and the value is a KDDMLScalar object containing the attribute value. Attribute value is checked by the interpreter layer and it is correct.
Arguments are given as vector of KDDMLOjbect. Types of arguments are correct, as required by the getArgumentType(int i) method.
Mining operators call an appropriate algorithm for extracting or applying a model from/to given training/test data. Typically, the algorithm is an external program (such as YaDT, DCI or Weka algorithms) which requires its own input format and provides its own output format. As a consequence, this method defines a three-step process in order to extract the final model:
-
it scans the passed data in order to transform the data source into the format as the algorithm specification requires;
-
it call the actual algorithm (typically as external program);
-
finally, it interprets the output generated by the algorithm in order to return an appropriate KDDMLObject.
- Parameters:
-
| settings | Hashtable the attributes related to the operator. The key of the hashtable is the name of the attribute. The value of the hashtable is a KDDMLScalar representing the value of the attribute. |
| arguments | Vector the list of arguments as KDDMLObject. |
- Returns:
- KDDMLObject the result of evaluating the operator.
- Exceptions:
-
| ResolverException | if a resolving error occurs. |
| KDDMLCoreException | if a level core error occurs. |
Implements kddml.Operators.OperatorResolver. |