public class RBFNetwork extends Classifier implements OptionHandler
-B <number> Set the number of clusters (basis functions) to generate. (default = 2).
-S <seed> Set the random seed to be used by K-means. (default = 1).
-R <ridge> Set the ridge value for the logistic or linear regression.
-M <number> Set the maximum number of iterations for the logistic regression. (default -1, until convergence).
-W <number> Set the minimum standard deviation for the clusters. (default 0.1).
| Constructor and Description |
|---|
RBFNetwork() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildClassifier(Instances instances)
Builds the classifier
|
String |
clusteringSeedTipText()
Returns the tip text for this property
|
double[] |
distributionForInstance(Instance instance)
Computes the distribution for a given instance
|
Capabilities |
getCapabilities()
Returns default capabilities of the classifier, i.e., and "or" of
Logistic and LinearRegression.
|
int |
getClusteringSeed()
Get the random seed used by K-means.
|
int |
getMaxIts()
Get the value of MaxIts.
|
double |
getMinStdDev()
Get the MinStdDev value.
|
int |
getNumClusters()
Return the number of clusters to generate.
|
String[] |
getOptions()
Gets the current settings of the classifier.
|
String |
getRevision()
Returns the revision string.
|
double |
getRidge()
Gets the ridge value.
|
String |
globalInfo()
Returns a string describing this classifier
|
Enumeration |
listOptions()
Returns an enumeration describing the available options
|
static void |
main(String[] argv)
Main method for testing this class.
|
String |
maxItsTipText()
Returns the tip text for this property
|
String |
minStdDevTipText()
Returns the tip text for this property
|
String |
numClustersTipText()
Returns the tip text for this property
|
String |
ridgeTipText()
Returns the tip text for this property
|
void |
setClusteringSeed(int seed)
Set the random seed to be passed on to K-means.
|
void |
setMaxIts(int newMaxIts)
Set the value of MaxIts.
|
void |
setMinStdDev(double newMinStdDev)
Set the MinStdDev value.
|
void |
setNumClusters(int numClusters)
Set the number of clusters for K-means to generate.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setRidge(double ridge)
Sets the ridge value for logistic or linear regression.
|
String |
toString()
Returns a description of this classifier as a String
|
classifyInstance, debugTipText, forName, getDebug, makeCopies, makeCopy, setDebugpublic String globalInfo()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ClassifierLogistic,
LinearRegressionpublic void buildClassifier(Instances instances) throws Exception
buildClassifier in class Classifierinstances - the training dataException - if the classifier could not be built successfullypublic double[] distributionForInstance(Instance instance) throws Exception
distributionForInstance in class Classifierinstance - the instance for which distribution is computedException - if the distribution can't be computed successfullypublic String toString()
public String maxItsTipText()
public int getMaxIts()
public void setMaxIts(int newMaxIts)
newMaxIts - Value to assign to MaxIts.public String ridgeTipText()
public void setRidge(double ridge)
ridge - the ridgepublic double getRidge()
public String numClustersTipText()
public void setNumClusters(int numClusters)
numClusters - the number of clusters to generate.public int getNumClusters()
public String clusteringSeedTipText()
public void setClusteringSeed(int seed)
seed - a seed value.public int getClusteringSeed()
public String minStdDevTipText()
public double getMinStdDev()
public void setMinStdDev(double newMinStdDev)
newMinStdDev - The new MinStdDev value.public Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class Classifierpublic void setOptions(String[] options) throws Exception
-B <number> Set the number of clusters (basis functions) to generate. (default = 2).
-S <seed> Set the random seed to be used by K-means. (default = 1).
-R <ridge> Set the ridge value for the logistic or linear regression.
-M <number> Set the maximum number of iterations for the logistic regression. (default -1, until convergence).
-W <number> Set the minimum standard deviation for the clusters. (default 0.1).
setOptions in interface OptionHandlersetOptions in class Classifieroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Classifierpublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Classifierpublic static void main(String[] argv)
argv - should contain the command line arguments to the
scheme (see Evaluation)Copyright © 2021 University of Waikato, Hamilton, NZ. All rights reserved.