package
0.0.0-20230505210105-3ee970353c38
Repository: https://github.com/ep2012/golearn.git
Documentation: pkg.go.dev

# Functions

InferID3Tree builds a decision tree using a RuleGenerator from a set of Instances (implements the ID3 algorithm).
Function to Create New Decision Tree Classifier.
Interface for creating new Decision Tree Regressor.
NewID3DecisionTree returns a new ID3DecisionTree with the specified test-prune ratio and InformationGain as the rule generator.
NewID3DecisionTreeFromRule returns a new ID3DecisionTree with the specified test-prun ratio and the given rule gnereator.
Function to create a new isolation forest.
NewRandomTree returns a new RandomTree which considers attrs randomly chosen attributes at each node.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
LeafNode means there are no children.
No description provided by the author
No description provided by the author
RuleNode means we should look at the next attribute value.

# Structs

CARTDecisionTreeClassifier: Tree struct for Decision Tree Classifier It contains the rootNode, as well as all of the hyperparameters chosen by the user.
CARTDecisionTreeRegressor - Tree struct for Decision Tree Regressor It contains the rootNode, as well as the hyperparameters chosen by user.
No description provided by the author
DecisionTreeNode represents a given portion of a decision tree.
DecisionTreeRule represents the "decision" in "decision tree".
GiniCoefficientRuleGenerator generates DecisionTreeRules which minimize the Geni impurity coefficient at each node.
ID3DecisionTree represents an ID3-based decision tree using the Information Gain metric to select which attributes to split on at each node.
InformationGainRatioRuleGenerator generates DecisionTreeRules which maximise the InformationGain at each node.
InformationGainRuleGenerator generates DecisionTreeRules which maximize information gain at each node.
No description provided by the author
RandomTree builds a decision tree by considering a fixed number of randomly-chosen attributes at each node.
RandomTreeRuleGenerator is used to generate decision rules for Random Trees.
No description provided by the author

# Interfaces

RuleGenerator implementations analyse instances and determine the best value to split on.

# Type aliases

No description provided by the author
NodeType determines whether a DecisionTreeNode is a leaf or not.