Class NearestCentroidBoundary
java.lang.Object
weka.classifiers.AbstractClassifier
weka.classifiers.functions.NearestCentroidClassifier
weka.classifiers.functions.explicitboundaries.models.NearestCentroidBoundary
- 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.RevisionHandler
public class NearestCentroidBoundary
extends weka.classifiers.functions.NearestCentroidClassifier
implements ClassifierWithBoundaries
Nearest Centroind Classifier with explicit boundaries
Only binary classifiers.
- Since:
- 0.1.0
- Version:
- 2.2.1
- 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.core.Capabilities
String[]
Enumeration<weka.core.Option>
static void
void
setDebug
(boolean debug) void
setDotProduct
(DotProduct dotProduct) void
setOptions
(String[] options) Methods inherited from class weka.classifiers.functions.NearestCentroidClassifier
clusProtoTipText, getCentroids, getClusProto, getRevision, globalInfo, setClusProto, toString
Methods inherited from class weka.classifiers.AbstractClassifier
batchSizeTipText, classifyInstance, debugTipText, distributionsForInstances, doNotCheckCapabilitiesTipText, forName, getBatchSize, getDebug, getDoNotCheckCapabilities, getNumDecimalPlaces, implementsMoreEfficientBatchPrediction, makeCopies, makeCopy, numDecimalPlacesTipText, postExecution, preExecution, run, runClassifier, setBatchSize, setDoNotCheckCapabilities, setNumDecimalPlaces
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface weka.classifiers.Classifier
classifyInstance
-
Constructor Details
-
NearestCentroidBoundary
public NearestCentroidBoundary()
-
-
Method Details
-
buildClassifier
- Specified by:
buildClassifier
in interfaceweka.classifiers.Classifier
- Overrides:
buildClassifier
in classweka.classifiers.functions.NearestCentroidClassifier
- Throws:
Exception
-
getBoundary
Description copied from interface:ClassifierWithBoundaries
Returns decision boundaries of the classifier- Specified by:
getBoundary
in interfaceClassifierWithBoundaries
- Returns:
- Decision boundaries
- Throws:
Exception
-
distributionForInstance
- Specified by:
distributionForInstance
in interfaceweka.classifiers.Classifier
- Overrides:
distributionForInstance
in classweka.classifiers.functions.NearestCentroidClassifier
- Throws:
Exception
-
getCapabilities
public weka.core.Capabilities getCapabilities()- Specified by:
getCapabilities
in interfaceweka.core.CapabilitiesHandler
- Specified by:
getCapabilities
in interfaceweka.classifiers.Classifier
- Overrides:
getCapabilities
in classweka.classifiers.functions.NearestCentroidClassifier
-
getDotProduct
- Returns:
- the dotProduct
-
setDotProduct
- Parameters:
dotProduct
- the dotProduct to set
-
dotProductTipText
-
setDebug
public void setDebug(boolean debug) - Overrides:
setDebug
in classweka.classifiers.AbstractClassifier
-
listOptions
- Specified by:
listOptions
in interfaceweka.core.OptionHandler
- Overrides:
listOptions
in classweka.classifiers.functions.NearestCentroidClassifier
-
getOptions
- Specified by:
getOptions
in interfaceweka.core.OptionHandler
- Overrides:
getOptions
in classweka.classifiers.functions.NearestCentroidClassifier
-
setOptions
- Specified by:
setOptions
in interfaceweka.core.OptionHandler
- Overrides:
setOptions
in classweka.classifiers.functions.NearestCentroidClassifier
- Throws:
Exception
-
main
- Parameters:
args
-
-