Package weka.classifiers.meta
Class SumTransformed
- java.lang.Object
-
- weka.classifiers.AbstractClassifier
-
- weka.classifiers.SingleClassifierEnhancer
-
- weka.classifiers.meta.SumTransformed
-
- All Implemented Interfaces:
Serializable,Cloneable,weka.classifiers.Classifier,weka.core.BatchPredictor,weka.core.CapabilitiesHandler,weka.core.CapabilitiesIgnorer,weka.core.CommandlineRunnable,weka.core.OptionHandler,weka.core.RevisionHandler,weka.core.WeightedInstancesHandler
public class SumTransformed extends weka.classifiers.SingleClassifierEnhancer implements weka.core.WeightedInstancesHandlerFinds the base classifier with the best least median squared error.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected weka.core.Instancesm_Headerthe header information of the transformed data.
-
Constructor Summary
Constructors Constructor Description SumTransformed()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbuildClassifier(weka.core.Instances ins)Builds the classifier.doubleclassifyInstance(weka.core.Instance inst)Returns the prediction.StringgetRevision()StringglobalInfo()Returns a string describing classifier.static voidmain(String[] argv)Main method for running this class.StringtoString()Returns description of classifier.protected weka.core.InstancetransformInstance(weka.core.Instance in)Just sums up all the peaks.-
Methods inherited from class weka.classifiers.SingleClassifierEnhancer
classifierTipText, defaultClassifierOptions, defaultClassifierString, getCapabilities, getClassifier, getClassifierSpec, getOptions, listOptions, postExecution, preExecution, setClassifier, setOptions
-
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, debugTipText, distributionForInstance, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing classifier.- Returns:
- a description suitable for displaying in the explorer/experimenter gui
-
transformInstance
protected weka.core.Instance transformInstance(weka.core.Instance in)
Just sums up all the peaks.- Parameters:
in- the instance to transform- Returns:
- the transformed instance
-
buildClassifier
public void buildClassifier(weka.core.Instances ins) throws ExceptionBuilds the classifier.- Specified by:
buildClassifierin interfaceweka.classifiers.Classifier- Parameters:
ins- the training data- Throws:
Exception- if training fails
-
classifyInstance
public double classifyInstance(weka.core.Instance inst) throws ExceptionReturns the prediction.- Specified by:
classifyInstancein interfaceweka.classifiers.Classifier- Overrides:
classifyInstancein classweka.classifiers.AbstractClassifier- Parameters:
inst- the instance to predict- Returns:
- the prediction
- Throws:
Exception- if prediction fails
-
toString
public String toString()
Returns description of classifier.
-
getRevision
public String getRevision()
- Specified by:
getRevisionin interfaceweka.core.RevisionHandler- Overrides:
getRevisionin classweka.classifiers.AbstractClassifier
-
main
public static void main(String[] argv)
Main method for running this class.- Parameters:
argv- the options
-
-