DecisionTree
utils.DecisionTree
Represents a generic decision tree structure.
This sealed trait provides the common interface for all nodes within the decision tree, ensuring that any concrete node can evaluate a given context to produce a result. The use of a sealed trait ensures that all possible implementations are known at compile time, enabling exhaustive pattern matching and enhancing type safety.
Type parameters
- Ctx
-
The type of the context (input) on which the decision tree operates.
- Res
-
The type of the result (output) produced by the decision tree.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article