|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.rapidminer.operator.AbstractIOObject
de.dfki.madm.mlwizard.KnowledgeBase
public class KnowledgeBase
Central place for all knowledge regarding meta-learning including meta-features and classifiers. Administrative functionality like adding new datasets is shifted to the Administrator class for clarity reasons.
Nested Class Summary | |
---|---|
static class |
KnowledgeBase.LearningThread
|
Nested classes/interfaces inherited from class com.rapidminer.operator.AbstractIOObject |
---|
com.rapidminer.operator.AbstractIOObject.InputStreamProvider |
Constructor Summary | |
---|---|
KnowledgeBase()
creates an empty knowledge base |
Method Summary | |
---|---|
void |
addClassifier(Classifier classifier,
boolean evaluate)
adds a classifier to this knowledge base |
void |
addDataset(com.rapidminer.example.ExampleSet dataset,
java.lang.String name,
boolean store)
adds a new dataset to the knowledge base by computing its meta-features, evaluating all classifiers, and updating the accuracy prediction models as well as the set of selected meta-features |
void |
awaitTermination(long timeout,
java.util.concurrent.TimeUnit unit)
|
com.rapidminer.operator.Annotations |
getAnnotations()
|
Classifier |
getClassifier(java.lang.String name)
|
java.util.Collection<Classifier> |
getClassifiers()
|
com.rapidminer.example.ExampleSet |
getMetaFeatures()
|
java.util.List<java.lang.Double> |
getStartPoints(Classifier classifier,
com.rapidminer.example.Example queryMetaFeatures,
int n)
determines the start points for the GA for a given classifier and dataset |
java.util.Collection<java.lang.String> |
getStoredDatasets()
|
static KnowledgeBase |
read()
reads the knowledge from the resource (used within the extension) |
static com.rapidminer.example.ExampleSet |
readDataSet(java.lang.String name)
reads a dataset either from resource or from file |
void |
setMetaFeatures(com.rapidminer.example.ExampleSet metaFeatures)
replaces the meta-features |
void |
write()
writes the knowledge base to the file (used within a stand-alone application) |
Methods inherited from class com.rapidminer.operator.AbstractIOObject |
---|
appendOperatorToHistory, copy, getLog, getProcessingHistory, getSource, initWriting, read, read, read, read, setLoggingHandler, setSource, write |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KnowledgeBase()
Method Detail |
---|
public java.util.Collection<java.lang.String> getStoredDatasets()
public Classifier getClassifier(java.lang.String name)
name
- name of the desired classifier
public final java.util.Collection<Classifier> getClassifiers()
public void addClassifier(Classifier classifier, boolean evaluate) throws java.io.IOException, com.rapidminer.tools.XMLException, com.rapidminer.operator.OperatorException, com.rapidminer.operator.OperatorCreationException
classifier
- the classifier to be added
com.rapidminer.operator.OperatorException
com.rapidminer.tools.XMLException
java.io.IOException
com.rapidminer.operator.OperatorCreationException
public com.rapidminer.example.ExampleSet getMetaFeatures()
public void setMetaFeatures(com.rapidminer.example.ExampleSet metaFeatures)
metaFeatures
- the new meta-featurespublic void addDataset(com.rapidminer.example.ExampleSet dataset, java.lang.String name, boolean store) throws com.rapidminer.operator.OperatorCreationException, com.rapidminer.operator.OperatorException, java.io.FileNotFoundException, java.io.IOException, com.rapidminer.tools.XMLException, java.lang.InterruptedException
dataset
- the dataset to be addedname
- the name of the dataset used as idknowledgeBase
- the knowledge base the dataset should be added to
com.rapidminer.operator.OperatorCreationException
com.rapidminer.operator.OperatorException
java.io.IOException
java.io.FileNotFoundException
com.rapidminer.tools.XMLException
java.lang.InterruptedException
public static KnowledgeBase read() throws java.io.IOException
java.io.IOException
public void write() throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static com.rapidminer.example.ExampleSet readDataSet(java.lang.String name) throws java.io.IOException
name
- the name of the dataset
java.io.IOException
public java.util.List<java.lang.Double> getStartPoints(Classifier classifier, com.rapidminer.example.Example queryMetaFeatures, int n)
classifier
- the classifierqueryMetaFeatures
- the meta-features of the datasetn
- the desired number of start points
public void awaitTermination(long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedException
java.lang.InterruptedException
public com.rapidminer.operator.Annotations getAnnotations()
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |