public class MIDClassClassifierWorkflow extends CommonWorkflow implements ClassificationWorkflow
aPriori, bridge, coreAlgorithmParameters, dis, trainedRules, trainingSet
Constructor and Description |
---|
MIDClassClassifierWorkflow() |
Modifier and Type | Method and Description |
---|---|
double[][] |
getResults()
Get the results of this workflow as an object
|
StandardWorkflow<double[][],ClassificationBridge> |
init()
Prepares the workflow for a new execution
|
void |
run() |
StandardWorkflow<double[][],ClassificationBridge> |
setBridge(ClassificationBridge bridge)
Links this workflow to a bridge
|
StandardWorkflow<double[][],ClassificationBridge> |
setParameters(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
Sets parameters for this workflow
|
ClassificationWorkflow |
setTestSet(java.util.List<MatrixElement[]> testSet)
Sets the test set
|
ClassificationWorkflow |
setTestSet(Matrix testSet)
Sets the test set
|
ClassificationWorkflow |
setTestSet(MatrixColumnPart testSet)
Sets the test set
|
ClassificationWorkflow |
setTrainingSet(Matrix trainingSet)
Sets the training set
|
arrayListToMatrix, buildItemSets, getItemSets, getRules, readMatrixFromDocument, readMatrixFromFile, readUnclassifiedMatrixFromDocument, readUnclassifiedMatrixFromFile, saveDiscretizedMatrixToFile
public StandardWorkflow<double[][],ClassificationBridge> init()
StandardWorkflow
init
in interface StandardWorkflow<double[][],ClassificationBridge>
public ClassificationWorkflow setTrainingSet(Matrix trainingSet)
ClassificationWorkflow
setTrainingSet
in interface ClassificationWorkflow
trainingSet
- the training set as a matrixpublic ClassificationWorkflow setTestSet(Matrix testSet)
ClassificationWorkflow
setTestSet
in interface ClassificationWorkflow
testSet
- the test set as a matrixpublic ClassificationWorkflow setTestSet(java.util.List<MatrixElement[]> testSet)
ClassificationWorkflow
setTestSet
in interface ClassificationWorkflow
testSet
- the test set as a list of matrix columnspublic ClassificationWorkflow setTestSet(MatrixColumnPart testSet)
ClassificationWorkflow
setTestSet
in interface ClassificationWorkflow
testSet
- the test set as a set of columnspublic StandardWorkflow<double[][],ClassificationBridge> setBridge(ClassificationBridge bridge)
StandardWorkflow
setBridge
in interface StandardWorkflow<double[][],ClassificationBridge>
bridge
- The bridgepublic StandardWorkflow<double[][],ClassificationBridge> setParameters(java.util.HashMap<java.lang.String,java.lang.Object> parameters)
StandardWorkflow
setParameters
in interface StandardWorkflow<double[][],ClassificationBridge>
parameters
- An hash map of Name, Value pairspublic void run()
run
in interface java.lang.Runnable
public double[][] getResults()
StandardWorkflow
getResults
in interface StandardWorkflow<double[][],ClassificationBridge>