Class TreeModelEvaluator
Represents the evaluator for tree model
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.PMML
Assembly: Syncfusion.PMML.Portable.dll
Syntax
public class TreeModelEvaluator : PMMLEvaluator, IDisposable
Constructors
TreeModelEvaluator(PMMLDocument)
Create instance for the Tree model evaluator.
Declaration
public TreeModelEvaluator(PMMLDocument pmmlDocument)
Parameters
Type | Name | Description |
---|---|---|
PMMLDocument | pmmlDocument | PMML document |
Methods
ComputeTraverseFailedNode(Node, Dictionary<String, Object>)
Computes the traversed failed nodes (i.e. when all child nodes traverse fails)
Declaration
public Node ComputeTraverseFailedNode(Node node, Dictionary<string, object> fieldValuePair)
Parameters
Type | Name | Description |
---|---|---|
Node | node | Node |
System.Collections.Generic.Dictionary<System.String, System.Object> | fieldValuePair | Field value |
Returns
Type | Description |
---|---|
Node | Predicted node among the failed nodes |
GetResult(Object, IModelOptions)
Returns predicted result. Evaluates the given input against the scoring procedure of the Tree model and returns the predicted result.
Declaration
public override PredictedResult GetResult(object obj, IModelOptions modelOptions)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | object data |
IModelOptions | modelOptions | model options values, always null |
Returns
Type | Description |
---|---|
PredictedResult | Returns the predicted result |
Overrides
Implements
System.IDisposable