|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.logging.AbstractLoggable
de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable
de.lmu.ifi.dbs.elki.application.AbstractApplication
de.lmu.ifi.dbs.elki.KDDTask<O>
O
- the type of DatabaseObjects handled by this Algorithmpublic class KDDTask<O extends DatabaseObject>
Provides a KDDTask that can be used to perform any algorithm implementing
Algorithm
using any DatabaseConnection implementing
DatabaseConnection
.
Field Summary | |
---|---|
private Algorithm<O,Result> |
algorithm
Holds the algorithm to run. |
private ClassParameter<Algorithm<O,Result>> |
ALGORITHM_PARAM
Parameter to specify the algorithm to be applied, must extend Algorithm . |
private ClassParameter<DatabaseConnection<O>> |
DATABASE_CONNECTION_PARAM
Parameter to specify the database connection to be used, must extend DatabaseConnection . |
private DatabaseConnection<O> |
databaseConnection
Holds the database connection to have the algorithm run with. |
private Normalization<O> |
normalization
A normalization - per default no normalization is used. |
private ClassParameter<Normalization<O>> |
NORMALIZATION_PARAM
Optional Parameter to specify a normalization in order to use a database with normalized values. |
private Flag |
NORMALIZATION_UNDO_FLAG
Flag to revert result to original values - invalid option if no normalization has been performed. |
private boolean |
normalizationUndo
Whether to undo normalization for result. |
(package private) MultiResult |
result
Store the result. |
private ClassParameter<ResultHandler<O,Result>> |
RESULT_HANDLER_PARAM
Parameter to specify the result handler to be used, must extend ResultHandler . |
private ResultHandler<O,Result> |
resulthandler
Output handler. |
Fields inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication |
---|
INFORMATION |
Fields inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
optionHandler |
Fields inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debug, logger |
Constructor Summary | |
---|---|
KDDTask()
Provides a KDDTask. |
Method Summary | |
---|---|
MultiResult |
getResult()
Get the algorithms result. |
static void |
main(String[] args)
Runs a KDD task accordingly to the specified parameters. |
void |
run()
Method to run the specified algorithm using the specified database connection. |
List<String> |
setParameters(List<String> args)
Grabs all specified options from the option handler. |
Methods inherited from class de.lmu.ifi.dbs.elki.application.AbstractApplication |
---|
getRemainingParameters, isVerbose, runCLIApplication, usage |
Methods inherited from class de.lmu.ifi.dbs.elki.utilities.optionhandling.AbstractParameterizable |
---|
addOption, addParameterizable, addParameterizable, checkGlobalParameterConstraints, collectOptions, getAttributeSettings, getParameters, rememberParametersExcept, removeOption, removeParameterizable, shortDescription |
Methods inherited from class de.lmu.ifi.dbs.elki.logging.AbstractLoggable |
---|
debugFine, debugFiner, debugFinest, exception, progress, verbose, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final ClassParameter<Algorithm<O extends DatabaseObject,Result>> ALGORITHM_PARAM
Algorithm
.
Key: -algorithm
private final ClassParameter<DatabaseConnection<O extends DatabaseObject>> DATABASE_CONNECTION_PARAM
DatabaseConnection
.
Key: -dbc
Default value: FileBasedDatabaseConnection
private final ClassParameter<Normalization<O extends DatabaseObject>> NORMALIZATION_PARAM
Key: -norm
private final Flag NORMALIZATION_UNDO_FLAG
Key: -normUndo
private final ClassParameter<ResultHandler<O extends DatabaseObject,Result>> RESULT_HANDLER_PARAM
ResultHandler
.
Key: -resulthandler
Default value: ResultWriter
private Algorithm<O extends DatabaseObject,Result> algorithm
private DatabaseConnection<O extends DatabaseObject> databaseConnection
private Normalization<O extends DatabaseObject> normalization
private boolean normalizationUndo
private ResultHandler<O extends DatabaseObject,Result> resulthandler
MultiResult result
Constructor Detail |
---|
public KDDTask()
Method Detail |
---|
public List<String> setParameters(List<String> args) throws ParameterException
AbstractParameterizable
{ ListremainingParameters = super.setParameters(args); // set parameters for your class // for example like this: if(isSet(MY_PARAM_VALUE_PARAM)) { myParamValue = getParameterValue(MY_PARAM_VALUE_PARAM); } . . . return remainingParameters; // or in case of attributes requesting parameters themselves // return parameterizableAttribbute.setParameters(remainingParameters); }
setParameters
in interface Parameterizable
setParameters
in class AbstractApplication
args
- parameters to set the attributes accordingly to
ParameterException
- in case of wrong parameter-settingAbstractParameterizable.setParameters(java.util.List)
public void run() throws IllegalStateException
run
in class AbstractApplication
IllegalStateException
public MultiResult getResult()
public static void main(String[] args)
args
- parameter list according to description
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |