CART Trainer
A CART trainer that uses the ID3 algorithm. For estimating a phonetic decision tree see CART Estimation. The CART trainer can also be used to verify and dump a CART training setup, in particular a CART question file and a CART example file.
Input
CART Examples
CART question file
Output
CART tree
Cluster file
Parameters:
dry (bool) : if yes, only check and dump training/question file and example filescoring-function (string) : scoring function for clusters of observationstraining-file (string) : question file / training planexample-file (string) : file name with examplesdecision-tree-file (string) : decision tree file to writecluster-file (string) : write clusters to fileChannels:
training.xml : dump the CART questions in XML-formattraining.plain : dump the CART questions in text-formatexample.xml : dump the training examples in XML-formatexample.plain : dump the training examples in text-formatdecision-tree.xml : dump the decision tree in XML-formatdecision-tree.plain : dump the decision tree in text-formatdecision-tree.dot : dump the decision tree in DOT-formatcluster.xml : dump the clustered training examples in XML-formatcluster.plain : dump the clustered training examples in text-formatExample Configuration
[*]
# dry-run
dry = false
# scoring; so far only ID3 is supported
scoring-function = ID3
# training plan
training-file = config/cart-questions.xml
# dump training setup
training.plain.channel = cart-questions.txt
training.xml.channel = cart-questions.xml
# examples
example-file = data/cart-examples.xml
# dump examples
example.plain.channel = cart-examples.txt
example.xml.channel = cart-examples.xml
# decision tree
decision-tree-file = data/cart-tree.xml
decision-tree.plain.channel = cart-tree.txt
decision-tree.xml.channel = cart-tree.xml
decision-tree.dot.channel = cart-tree.dot
# clusters
cluster-file = data/cart-cluster.xml # optional
cluster.plain.channel = cart-cluster.txt
cluster.xml.channel = cart-cluster.xml
# Channels
[*]
log.channel = log-channel
warning.channel = log-channel, stderr
error.channel = log-channel, stderr
statistics.channel = log-channel
configuration.channel = log-channel
unbuffered = true
log-channel.file = $(log-file)