|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.classifiers.AbstractClassifier
weka.classifiers.functions.GaussianProcessesWeighted
public class GaussianProcessesWeighted
Implements Gaussian Processes for regression without hyperparameter-tuning. For more information see
David J.C. Mackay (1998). Introduction to Gaussian Processes. Dept. of Physics, Cambridge University, UK.
@misc{Mackay1998,
address = {Dept. of Physics, Cambridge University, UK},
author = {David J.C. Mackay},
title = {Introduction to Gaussian Processes},
year = {1998},
PS = {http://wol.ra.phy.cam.ac.uk/mackay/gpB.ps.gz}
}
Valid options are:
-D If set, classifier is run in debug mode and may output additional info to the console
-L <double> Level of Gaussian Noise. (default: 1.0)
-N Whether to 0=normalize/1=standardize/2=neither. (default: 0=normalize)
-K <classname and parameters> The Kernel to use. (default: weka.classifiers.functions.supportVector.PolyKernel)
Options specific to kernel weka.classifiers.functions.supportVector.RBFKernel:
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-G <num> The Gamma parameter. (default: 0.01)
| Field Summary | |
|---|---|
static int |
FILTER_NONE
no filter |
static int |
FILTER_NORMALIZE
normalizes the data |
static int |
FILTER_STANDARDIZE
standardizes the data |
protected double |
m_Alin
The parameters of the linear transforamtion realized by the filter on the class attribute |
protected double |
m_avg_target
The training data. |
protected double |
m_Blin
|
protected weka.core.matrix.Matrix |
m_C
The covariance matrix. |
protected boolean |
m_checksTurnedOff
Turn off all checks and conversions? Turning them off assumes that data is purely numeric, doesn't contain any missing values, and has a numeric class. |
protected int |
m_classIndex
The class index from the training data |
protected double |
m_delta
Gaussian Noise Value. |
protected weka.filters.Filter |
m_Filter
The filter used to standardize/normalize all values. |
protected int |
m_filterType
Whether to normalize/standardize/neither |
protected weka.classifiers.functions.supportVector.Kernel |
m_kernel
Kernel to use |
protected boolean |
m_KernelIsLinear
whether the kernel is a linear one |
protected weka.filters.unsupervised.attribute.ReplaceMissingValues |
m_Missing
The filter used to get rid of missing values. |
protected weka.filters.unsupervised.attribute.NominalToBinary |
m_NominalToBinary
The filter used to make attributes numeric. |
protected int |
m_NumTrain
The number of training instances |
protected weka.core.matrix.Matrix |
m_t
The vector of target values. |
static weka.core.Tag[] |
TAGS_FILTER
The filter to apply to the training data |
| Fields inherited from class weka.classifiers.AbstractClassifier |
|---|
m_Debug |
| Constructor Summary | |
|---|---|
GaussianProcessesWeighted()
the default constructor |
|
| Method Summary | |
|---|---|
void |
buildClassifier(weka.core.Instances insts)
Method for building the classifier. |
double |
classifyInstance(weka.core.Instance inst)
Classifies a given instance. |
String |
filterTypeTipText()
Returns the tip text for this property |
weka.core.Capabilities |
getCapabilities()
Returns default capabilities of the classifier. |
weka.core.SelectedTag |
getFilterType()
Gets how the training data will be transformed. |
weka.classifiers.functions.supportVector.Kernel |
getKernel()
Gets the kernel to use. |
double |
getNoise()
Get the value of noise. |
String[] |
getOptions()
Gets the current settings of the classifier. |
String |
getRevision()
Returns the revision string. |
double |
getStandardDeviation(weka.core.Instance inst)
Gives the variance of the prediction at the given instance |
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. |
String |
globalInfo()
Returns a string describing classifier |
String |
kernelTipText()
Returns the tip text for this property |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] argv)
Main method for testing this class. |
String |
noiseTipText()
Returns the tip text for this property |
double[][] |
predictIntervals(weka.core.Instance inst,
double confidenceLevel)
Predicts a confidence interval for the given instance and confidence level. |
void |
setFilterType(weka.core.SelectedTag newType)
Sets how the training data will be transformed. |
void |
setKernel(weka.classifiers.functions.supportVector.Kernel value)
Sets the kernel to use. |
void |
setNoise(double v)
Set the level of Gaussian Noise. |
void |
setOptions(String[] options)
Parses a given list of options. |
String |
toString()
Prints out the classifier. |
| Methods inherited from class weka.classifiers.AbstractClassifier |
|---|
debugTipText, distributionForInstance, forName, getDebug, makeCopies, makeCopy, runClassifier, setDebug |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected weka.filters.unsupervised.attribute.NominalToBinary m_NominalToBinary
public static final int FILTER_NORMALIZE
public static final int FILTER_STANDARDIZE
public static final int FILTER_NONE
public static final weka.core.Tag[] TAGS_FILTER
protected weka.filters.Filter m_Filter
protected int m_filterType
protected weka.filters.unsupervised.attribute.ReplaceMissingValues m_Missing
protected boolean m_checksTurnedOff
protected double m_delta
protected int m_classIndex
protected double m_Alin
protected double m_Blin
protected weka.classifiers.functions.supportVector.Kernel m_kernel
protected int m_NumTrain
protected double m_avg_target
protected weka.core.matrix.Matrix m_C
protected weka.core.matrix.Matrix m_t
protected boolean m_KernelIsLinear
| Constructor Detail |
|---|
public GaussianProcessesWeighted()
| Method Detail |
|---|
public String globalInfo()
public weka.core.TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface weka.core.TechnicalInformationHandlerpublic weka.core.Capabilities getCapabilities()
getCapabilities in interface weka.classifiers.ClassifiergetCapabilities in interface weka.core.CapabilitiesHandlergetCapabilities in class weka.classifiers.AbstractClassifier
public void buildClassifier(weka.core.Instances insts)
throws Exception
buildClassifier in interface weka.classifiers.Classifierinsts - the set of training instances
Exception - if the classifier can't be built successfully
public double classifyInstance(weka.core.Instance inst)
throws Exception
classifyInstance in interface weka.classifiers.ClassifierclassifyInstance in class weka.classifiers.AbstractClassifierinst - the instance to be classified
Exception - if instance could not be classified
successfully
public double[][] predictIntervals(weka.core.Instance inst,
double confidenceLevel)
throws Exception
predictIntervals in interface weka.classifiers.IntervalEstimatorinst - the instance to make the prediction forconfidenceLevel - the percentage of cases the interval should cover
Exception - if interval could not be estimated
successfully
public double getStandardDeviation(weka.core.Instance inst)
throws Exception
inst - the instance to get the variance for
Exception - if computation failspublic Enumeration listOptions()
listOptions in interface weka.core.OptionHandlerlistOptions in class weka.classifiers.AbstractClassifier
public void setOptions(String[] options)
throws Exception
-D If set, classifier is run in debug mode and may output additional info to the console
-L <double> Level of Gaussian Noise. (default: 1.0)
-N Whether to 0=normalize/1=standardize/2=neither. (default: 0=normalize)
-K <classname and parameters> The Kernel to use. (default: weka.classifiers.functions.supportVector.PolyKernel)
Options specific to kernel weka.classifiers.functions.supportVector.RBFKernel:
-D Enables debugging output (if available) to be printed. (default: off)
-no-checks Turns off all checks - use with caution! (default: checks on)
-C <num> The size of the cache (a prime number), 0 for full cache and -1 to turn it off. (default: 250007)
-G <num> The Gamma parameter. (default: 0.01)
setOptions in interface weka.core.OptionHandlersetOptions in class weka.classifiers.AbstractClassifieroptions - the list of options as an array of strings
Exception - if an option is not supportedpublic String[] getOptions()
getOptions in interface weka.core.OptionHandlergetOptions in class weka.classifiers.AbstractClassifierpublic String kernelTipText()
public weka.classifiers.functions.supportVector.Kernel getKernel()
public void setKernel(weka.classifiers.functions.supportVector.Kernel value)
value - the new kernelpublic String filterTypeTipText()
public weka.core.SelectedTag getFilterType()
public void setFilterType(weka.core.SelectedTag newType)
newType - the new filtering modepublic String noiseTipText()
public double getNoise()
public void setNoise(double v)
v - Value to assign to noise.public String toString()
toString in class Objectpublic String getRevision()
getRevision in interface weka.core.RevisionHandlergetRevision in class weka.classifiers.AbstractClassifierpublic static void main(String[] argv)
argv - the commandline parameters
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||