Class WMDecisionTreeNode
Represents each individual node in the decision tree structure.
Inherited Members
Namespace: Quantellia.WMServer.Asset.MLModel
Assembly: WMServer.dll
Syntax
public class WMDecisionTreeNode
Methods
CreateFromXML(XmlDocument)
Build the node tree by recursively parsing the XML
Declaration
public static WMDecisionTreeNode CreateFromXML(XmlDocument doc)
Parameters
Type | Name | Description |
---|---|---|
XmlDocument | doc | The XmlDocument representing the WMModelBase to be created |
Returns
Type | Description |
---|---|
WMDecisionTreeNode |
Evaluate(Dictionary<string, IComparable>)
Recursively evaluate the tree.
Declaration
public KeyValuePair<bool, object?> Evaluate(Dictionary<string, IComparable> args)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, IComparable> | args | A dictionary of variable names to values |
Returns
Type | Description |
---|---|
KeyValuePair<bool, object> | A Key-Value pair to indicate success and return value. |
EvaluatePredicate(Dictionary<string, IComparable>)
Evaluate the decision tree predicate.
Declaration
public bool EvaluatePredicate(Dictionary<string, IComparable> values)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<string, IComparable> | values | A dictionary of variable names to values |
Returns
Type | Description |
---|---|
bool |