Click or drag to resize
Accord.NET (logo)

DecisionTreeToCode Method (TextWriter, String)

Generates a C# class implementing the decision tree.

Namespace:  Accord.MachineLearning.DecisionTrees
Assembly:  Accord.MachineLearning (in Accord.MachineLearning.dll) Version: 3.8.0
Syntax
public void ToCode(
	TextWriter writer,
	string className = "MyTree"
)
Request Example View Source

Parameters

writer
Type: System.IOTextWriter
The TextWriter where the class should be written.
className (Optional)
Type: SystemString
The name for the generated class.
See Also