public class Autoencoder
extends weka.filters.SimpleBatchFilter
implements weka.filters.UnsupervisedFilter, weka.core.TechnicalInformationHandler
-N <int> Number of hidden units (default is 2).
-L <double> Lambda factor for penalty on weights (default is 0.01).
-O <double> Tolerance parameter for delta values (default is 1.0e-6).
-G Use conjugate gradient descent (recommended for many attributes).
-C Use contractive autoencoder instead of autoencoder with weight decay.
-X Use exact sigmoid function rather than approximation.
-F Output data in original space, so do not output reduced data.
-P <int> The size of the thread pool, for example, the number of cores in the CPU. (default 1)
-E <int> The number of threads to use, which should be >= size of thread pool. (default 1)
-D Turns on output of debugging information.
Constructor and Description |
---|
Autoencoder() |
Modifier and Type | Method and Description |
---|---|
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the filter.
|
double |
getLambda()
Gets the value of the lambda parameter.
|
int |
getNumFunctions()
Gets the number of functions.
|
int |
getNumThreads()
Gets the number of threads.
|
String[] |
getOptions()
Gets the current settings of the Filter.
|
boolean |
getOutputInOriginalSpace()
Gets whether to use original space.
|
int |
getPoolSize()
Gets the number of threads.
|
weka.core.TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
double |
getTolerance()
Gets the tolerance parameter for the delta values.
|
boolean |
getUseCGD()
Gets whether to use CGD.
|
boolean |
getUseContractiveAutoencoder()
Gets whether to use ContractiveAutoencoder.
|
boolean |
getUseExactSigmoid()
Gets whether to use exact sigmoid.
|
String |
globalInfo()
This will return a string describing the filter.
|
void |
initFilter(weka.core.Instances data)
Builds the autoencoder network based on the given data.
|
String |
lambdaTipText() |
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] argv)
Main method to run the code from the command-line using
the standard WEKA options.
|
String |
numFunctionsTipText() |
String |
numThreadsTipText() |
String |
outputInOriginalSpaceTipText() |
String |
poolSizeTipText() |
void |
setLambda(double newLambda)
Sets the value of the lambda parameter.
|
void |
setNumFunctions(int newNumFunctions)
Sets the number of functions.
|
void |
setNumThreads(int nT)
Sets the number of threads
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setOutputInOriginalSpace(boolean newOutputInOriginalSpace)
Sets whether to use original space.
|
void |
setPoolSize(int nT)
Sets the number of threads
|
void |
setTolerance(double newTolerance)
Sets the tolerance parameter for the delta values.
|
void |
setUseCGD(boolean newUseCGD)
Sets whether to use CGD.
|
void |
setUseContractiveAutoencoder(boolean newUseContractiveAutoencoder)
Sets whether to use ContractiveAutoencoder.
|
void |
setUseExactSigmoid(boolean newUseExactSigmoid)
Sets whether to use exact sigmoid.
|
String |
toleranceTipText() |
String |
useCGDTipText() |
String |
useContractiveAutoencoderTipText() |
String |
useExactSigmoidTipText() |
allowAccessToFullInputFormat, batchFinished, input
debugTipText, getDebug, setDebug, setInputFormat
batchFilterFile, filterFile, getCapabilities, getOutputFormat, getRevision, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, runFilter, toString, useFilter, wekaStaticWrapper
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.filters.Filter
public void initFilter(weka.core.Instances data) throws Exception
Exception
public String globalInfo()
globalInfo
in class weka.filters.SimpleFilter
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface weka.core.TechnicalInformationHandler
public String toleranceTipText()
public double getTolerance()
public void setTolerance(double newTolerance)
public String numFunctionsTipText()
public int getNumFunctions()
public void setNumFunctions(int newNumFunctions)
public String lambdaTipText()
public double getLambda()
public void setLambda(double newLambda)
public String useCGDTipText()
public boolean getUseCGD()
public void setUseCGD(boolean newUseCGD)
public String useContractiveAutoencoderTipText()
public boolean getUseContractiveAutoencoder()
public void setUseContractiveAutoencoder(boolean newUseContractiveAutoencoder)
public String useExactSigmoidTipText()
public boolean getUseExactSigmoid()
public void setUseExactSigmoid(boolean newUseExactSigmoid)
public String outputInOriginalSpaceTipText()
public boolean getOutputInOriginalSpace()
public void setOutputInOriginalSpace(boolean newOutputInOriginalSpace)
public String numThreadsTipText()
public int getNumThreads()
public void setNumThreads(int nT)
public String poolSizeTipText()
public int getPoolSize()
public void setPoolSize(int nT)
public Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.filters.SimpleFilter
public void setOptions(String[] options) throws Exception
-N <int> Number of hidden units (default is 2).
-L <double> Lambda factor for penalty on weights (default is 0.01).
-O <double> Tolerance parameter for delta values (default is 1.0e-6).
-G Use conjugate gradient descent (recommended for many attributes).
-C Use contractive autoencoder instead of autoencoder with weight decay.
-X Use exact sigmoid function rather than approximation.
-F Output data in original space, so do not output reduced data.
-P <int> The size of the thread pool, for example, the number of cores in the CPU. (default 1)
-E <int> The number of threads to use, which should be >= size of thread pool. (default 1)
-D Turns on output of debugging information.Options after -- are passed to the designated filter.
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.filters.SimpleFilter
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.filters.SimpleFilter
public static void main(String[] argv)
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.