de.dfki.madm.mlwizard.functionality
Class Evaluator

java.lang.Object
  extended by de.dfki.madm.mlwizard.functionality.Evaluator

public class Evaluator
extends java.lang.Object


Nested Class Summary
 class Evaluator.EvaluateSwingThread
           
static interface Evaluator.EvaluationListener
           
 
Constructor Summary
Evaluator()
          creates a new evaluator
 
Method Summary
 void awaitTermination()
           
 void cancelThread(java.lang.String classifierName)
          cancels the evaluation thread of a given classifier
 void cancelThreads()
          cancel all evaluation threads
 java.util.Map<Classifier,com.rapidminer.operator.meta.ParameterSet> evaluate(java.lang.Iterable<Classifier> classifiers, com.rapidminer.example.Example queryMetaFeatures, KnowledgeBase knowledgeBase, com.rapidminer.example.ExampleSet dataset, int nThreads)
           
 java.util.Map<Classifier,com.rapidminer.operator.meta.ParameterSet> evaluate(java.lang.Iterable<Classifier> classifiers, com.rapidminer.example.Example queryMetaFeatures, KnowledgeBase knowledgeBase, com.rapidminer.example.ExampleSet dataset, int nThreads, Evaluator.EvaluationListener evaluationListener)
          evaluates a set of classifier on one dataset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Evaluator

public Evaluator()
creates a new evaluator

Method Detail

evaluate

public java.util.Map<Classifier,com.rapidminer.operator.meta.ParameterSet> evaluate(java.lang.Iterable<Classifier> classifiers,
                                                                                    com.rapidminer.example.Example queryMetaFeatures,
                                                                                    KnowledgeBase knowledgeBase,
                                                                                    com.rapidminer.example.ExampleSet dataset,
                                                                                    int nThreads)
                                                                             throws com.rapidminer.operator.OperatorCreationException,
                                                                                    java.io.IOException,
                                                                                    com.rapidminer.tools.XMLException
Throws:
com.rapidminer.operator.OperatorCreationException
java.io.IOException
com.rapidminer.tools.XMLException

evaluate

public java.util.Map<Classifier,com.rapidminer.operator.meta.ParameterSet> evaluate(java.lang.Iterable<Classifier> classifiers,
                                                                                    com.rapidminer.example.Example queryMetaFeatures,
                                                                                    KnowledgeBase knowledgeBase,
                                                                                    com.rapidminer.example.ExampleSet dataset,
                                                                                    int nThreads,
                                                                                    Evaluator.EvaluationListener evaluationListener)
                                                                             throws com.rapidminer.operator.OperatorCreationException,
                                                                                    java.io.IOException,
                                                                                    com.rapidminer.tools.XMLException
evaluates a set of classifier on one dataset

Parameters:
classifierNames - the set of classifier names
queryMetaFeatures - the meta-features of the dataset
knowledgeBase - the knowledge base to use
dataset - the actual dataset
nThreads - number of threads for the evaluation
evaluationListener - the listener of evaluation events (might be null)
Returns:
a map of classifiers and their optimized parameter values
Throws:
com.rapidminer.operator.OperatorCreationException
java.io.IOException
com.rapidminer.tools.XMLException

awaitTermination

public void awaitTermination()
                      throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

cancelThread

public void cancelThread(java.lang.String classifierName)
cancels the evaluation thread of a given classifier

Parameters:
classifierName - the name of the classifier which evaluation should be stopped

cancelThreads

public void cancelThreads()
cancel all evaluation threads



Copyright © 2001-2009 by Rapid-I