public abstract class RunCART
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected CART |
cartAlgorithm
Algorithm
|
protected static IImpurityFunction |
impurityFunction
Impurity function to use.
|
protected static java.lang.String |
modelFileName
The name of the file that contains the information to build the model.
|
protected static java.lang.String |
resultFileName
The name of the result file.
|
protected DoubleTransposedDataSet |
testData
Test dataset read.
|
protected static java.lang.String |
testFileName
The name of the file that contains the information to make the test.
|
protected static java.lang.String |
testOutputFileName
The name of the test output file.
|
protected DoubleTransposedDataSet |
trainData
Training dataset read.
|
protected static java.lang.String |
trainFileName
The name of the file that contains the information to make the training.
|
protected static java.lang.String |
trainOutputFileName
The name of the train output file.
|
Constructor and Description |
---|
RunCART(java.lang.String file,
boolean regression)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
setOptions(java.io.StreamTokenizer options)
Function to read the options from the execution file and assign
the values to the parameters.
|
protected CART cartAlgorithm
protected static java.lang.String modelFileName
protected static java.lang.String trainFileName
protected DoubleTransposedDataSet trainData
protected static java.lang.String testFileName
protected DoubleTransposedDataSet testData
protected static java.lang.String trainOutputFileName
protected static java.lang.String testOutputFileName
protected static java.lang.String resultFileName
protected static IImpurityFunction impurityFunction
public RunCART(java.lang.String file, boolean regression)
file
- parameter fileregression
- set at true if tree is used for regression
and if false is used for classificationprotected void setOptions(java.io.StreamTokenizer options) throws java.lang.Exception
options
- The StreamTokenizer that reads the parameters file.java.lang.Exception
- If the format of the file is not correct.