Package weka.classifiers.functions
Class BoundaryBasedClassifier
java.lang.Object
weka.classifiers.AbstractClassifier
weka.classifiers.SingleClassifierEnhancer
weka.classifiers.functions.SingleClassifierEnhancerBoundary
weka.classifiers.functions.BoundaryBasedClassifier
- All Implemented Interfaces:
Serializable
,Cloneable
,weka.classifiers.Classifier
,ClassifierWithBoundaries
,weka.core.BatchPredictor
,weka.core.CapabilitiesHandler
,weka.core.CapabilitiesIgnorer
,weka.core.CommandlineRunnable
,weka.core.OptionHandler
,weka.core.Randomizable
,weka.core.RevisionHandler
public class BoundaryBasedClassifier
extends SingleClassifierEnhancerBoundary
implements ClassifierWithBoundaries, weka.core.Randomizable
Allows to use boundary classifier as general Classifier object
- Since:
- 2.0.0
- Version:
- 2.1.3
- Author:
- pawel trajdos
- See Also:
-
Field Summary
Fields inherited from class weka.classifiers.AbstractClassifier
BATCH_SIZE_DEFAULT, NUM_DECIMAL_PLACES_DEFAULT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
buildClassifier
(weka.core.Instances data) double[]
distributionForInstance
(weka.core.Instance instance) Returns decision boundaries of the classifierweka.classifiers.Classifier
int
String[]
int
getSeed()
boolean
Enumeration<weka.core.Option>
static void
void
setCalibrator
(weka.classifiers.Classifier calibrator) void
setNumFolds
(int numFolds) void
setOptions
(String[] options) void
setSeed
(int seed) void
setUseCalibrator
(boolean useCalibrator) Methods inherited from class weka.classifiers.functions.SingleClassifierEnhancerBoundary
getCapabilities, setClassifier
Methods inherited from class weka.classifiers.SingleClassifierEnhancer
classifierTipText, getClassifier, postExecution, preExecution
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, getRevision, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, run, runClassifier, setBatchSize, setDebug, setDoNotCheckCapabilities, setNumDecimalPlaces
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface weka.classifiers.Classifier
classifyInstance, getCapabilities
-
Constructor Details
-
BoundaryBasedClassifier
-
BoundaryBasedClassifier
public BoundaryBasedClassifier()
-
-
Method Details
-
buildClassifier
- Specified by:
buildClassifier
in interfaceweka.classifiers.Classifier
- Throws:
Exception
-
distributionForInstance
- Specified by:
distributionForInstance
in interfaceweka.classifiers.Classifier
- Overrides:
distributionForInstance
in classweka.classifiers.AbstractClassifier
- Throws:
Exception
-
getBoundary
Description copied from interface:ClassifierWithBoundaries
Returns decision boundaries of the classifier- Specified by:
getBoundary
in interfaceClassifierWithBoundaries
- Returns:
- Decision boundaries
- Throws:
Exception
-
getCalibrator
public weka.classifiers.Classifier getCalibrator()- Returns:
- the calibrator
-
setCalibrator
public void setCalibrator(weka.classifiers.Classifier calibrator) - Parameters:
calibrator
- the calibrator to set
-
calibratorTipText
-
getNumFolds
public int getNumFolds()- Returns:
- the numFolds
-
setNumFolds
public void setNumFolds(int numFolds) - Parameters:
numFolds
- the numFolds to set
-
numFoldsTipText
-
setSeed
public void setSeed(int seed) - Specified by:
setSeed
in interfaceweka.core.Randomizable
-
seedTipText
-
getSeed
public int getSeed()- Specified by:
getSeed
in interfaceweka.core.Randomizable
-
getUseCalibrator
public boolean getUseCalibrator()- Returns:
- the useCalibrator
-
setUseCalibrator
public void setUseCalibrator(boolean useCalibrator) - Parameters:
useCalibrator
- the useCalibrator to set
-
useCalibratorTipText
-
globalInfo
-
listOptions
- Specified by:
listOptions
in interfaceweka.core.OptionHandler
- Overrides:
listOptions
in classweka.classifiers.SingleClassifierEnhancer
-
setOptions
- Specified by:
setOptions
in interfaceweka.core.OptionHandler
- Overrides:
setOptions
in classweka.classifiers.SingleClassifierEnhancer
- Throws:
Exception
-
getOptions
- Specified by:
getOptions
in interfaceweka.core.OptionHandler
- Overrides:
getOptions
in classweka.classifiers.SingleClassifierEnhancer
-
main
-