public class ResultPrinter
extends java.lang.Object
| Constructor and Description |
|---|
ResultPrinter() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getHeader()
It returns the header
|
java.lang.String |
getModelResultFile()
It gets the model result file
|
IAttribute |
getOutputAttribute()
If returns the output attribute
|
DoubleTransposedDataSet |
getTestData()
It gets the test data
|
java.lang.String |
getTestResultFile()
It gets the test result file
|
DoubleTransposedDataSet |
getTrainData()
Ir returns the training data
|
java.lang.String |
getTrainResultFile()
It returns the training results file
|
void |
printModelFile(java.lang.Object result)
Print result model tree
|
void |
setHeader(java.lang.String header)
It sets the header
|
void |
setModelResultFile(java.lang.String modelResultFile)
It sets the model result file
|
void |
setOutputAttribute(IAttribute outputAttribute)
It sets the output attribute
|
void |
setTestData(DoubleTransposedDataSet testData)
It sets the test data
|
void |
setTestResultFile(java.lang.String testResultFile)
It sets the test result file
|
void |
setTrainData(DoubleTransposedDataSet trainData)
It sets the training data
|
void |
setTrainResultFile(java.lang.String trainResultFile)
It sets the training results file
|
void |
writeResults(byte[][] predictedTrain,
byte[][] predictedTest)
This method print the output file in Keel format for classification problems
|
void |
writeResults(double[] predictedTrain,
double[] predictedTest)
This method print the output file in Keel format for regression problems
|
public java.lang.String getHeader()
public void setHeader(java.lang.String header)
header - the header to setpublic java.lang.String getTrainResultFile()
public void setTrainResultFile(java.lang.String trainResultFile)
trainResultFile - the trainResultFile to setpublic java.lang.String getTestResultFile()
public void setTestResultFile(java.lang.String testResultFile)
testResultFile - the testResultFile to setpublic java.lang.String getModelResultFile()
public void setModelResultFile(java.lang.String modelResultFile)
modelResultFile - the modelResultFile to setpublic IAttribute getOutputAttribute()
public void setOutputAttribute(IAttribute outputAttribute)
outputAttribute - the outputAttribute to setpublic DoubleTransposedDataSet getTrainData()
public void setTrainData(DoubleTransposedDataSet trainData)
trainData - the trainData to setpublic DoubleTransposedDataSet getTestData()
public void setTestData(DoubleTransposedDataSet testData)
testData - the testData to setpublic void writeResults(byte[][] predictedTrain,
byte[][] predictedTest)
predictedTrain - Output class as binary in rows, patterns in cols for the training data.predictedTest - Output class as binary in rows, patterns in cols for the test data.public void writeResults(double[] predictedTrain,
double[] predictedTest)
predictedTrain - Output class as binary in rows, patterns in cols for training.predictedTest - Output class as binary in rows, patterns in cols for test.public void printModelFile(java.lang.Object result)
result -