DecisionNode Class |
Namespace: Accord.MachineLearning.DecisionTrees
The DecisionNode type exposes the following members.
Name | Description | |
---|---|---|
DecisionNode |
Creates a new decision node.
|
Name | Description | |
---|---|---|
Branches |
If this is not a leaf node, gets or sets the collection
of child nodes for this node, together with the attribute
determining the reasoning process for those children.
| |
Comparison |
Gets or sets the type of the comparison which
should be done against Value.
| |
IsLeaf |
Gets a value indicating whether this instance is a leaf (has no children).
| |
IsRoot |
Gets a value indicating whether this instance is a root node (has no parent).
| |
Output |
If this is a leaf node, gets or sets the output
value to be decided when this node is reached.
| |
Owner |
Gets the DecisionTree containing this node.
| |
Parent |
Gets or sets the parent of this node. If this is a root
node, the parent is null.
| |
Value |
Gets or sets the value this node responds to
whenever this node acts as a child node. This
value is set only when the node has a parent.
|
Name | Description | |
---|---|---|
Compute(Double) |
Computes whether a value satisfies
the condition imposed by this node.
| |
Compute(Int32) |
Computes whether a value satisfies
the condition imposed by this node.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the node's subtree.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetHeight |
Computes the height of the node, defined as the
distance (in number of links) between the tree's
root node and this node.
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString |
Returns a String that represents this instance.
(Overrides ObjectToString.) | |
ToString(Codification) |
Returns a String that represents this instance.
|
Name | Description | |
---|---|---|
HasMethod |
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.) | |
IsEqual |
Compares two objects for equality, performing an elementwise
comparison if the elements are vectors or matrices.
(Defined by Matrix.) | |
SetEqualsDecisionNode |
Compares two enumerables for set equality. Two
enumerables are set equal if they contain the
same elements, but not necessarily in the same
order.
(Defined by Matrix.) | |
To(Type) | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) | |
ToT | Overloaded.
Converts an object into another type, irrespective of whether
the conversion can be done at compile time or not. This can be
used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.) |