public class LazyDT extends LazyAlgorithm
confMatrix, initialTime, inputAtt, inputs, modelTime, name, nClasses, nInstances, nulls, outFile, output, prediction, predictions, probabilities, realClass, reference, referenceData, referenceFile, referenceOutput, relation, seed, temp, test, testData, testFile, testOutput, testTime, train, trainConfMatrix, trainData, trainFile, trainingTime, trainOutput, trainPrediction, trainRealClass, trainUnclassified, unclassified
Constructor and Description |
---|
LazyDT(java.lang.String script)
Creates a LazyDT instance by reading the script file that contains all the information needed
for running the algorithm
|
Modifier and Type | Method and Description |
---|---|
protected int |
evaluate(double[] example)
Classifies a given item with the information stored using the LazyDT algorithm
|
void |
precompute()
Does some previous computations to the beginning of the algorithm, this means, getting the number
of different values of the categorical attributes and the denormalization of the dataset
|
protected void |
readParameters(java.lang.String script)
Reads configuration script, to extract the parameter's values.
|
euclideanDistance, evaluate2, execute, executeReference, manhattanDistance, normalizeReference, normalizeTest, normalizeTrain, printInstance, readConfiguracion, readDataFiles, readDataFiles, readDataFiles, same, setInitialTime
public LazyDT(java.lang.String script)
script
- The configuration script which contains the parameters of the algorithmprotected void readParameters(java.lang.String script)
readParameters
in class LazyAlgorithm
script
- Name of the configuration scriptprotected int evaluate(double[] example)
evaluate
in class LazyAlgorithm
example
- Data attribute values for the item we are classifyingpublic void precompute()