All Packages Class Hierarchy This Package Previous Next Index WEKA's home
java.lang.Object | +----weka.clusterers.Clusterer | +----weka.clusterers.Cobweb
Note: the application of node operators (merging, splitting etc.) in terms of ordering and priority differs (and is somewhat ambiguous) between the original Cobweb and Classit papers. This algorithm always compares the best host, adding a new leaf, merging the two best hosts, and splitting the best host when considering where to place a new instance.
Valid options are:
-A
-C
-A
-C
Acuity.
Cutoff.
Cobweb()
acuityTipText()
addInstance(Instance)
buildClusterer(Instances)
clusterInstance(Instance)
cutoffTipText()
getAcuity()
getCutoff()
getOptions()
getSaveInstanceData()
graph()
listOptions()
main(String[])
numberOfClusters()
saveInstanceDataTipText()
setAcuity(double)
setCutoff(double)
setOptions(String[])
setSaveInstanceData(boolean)
toString()
Cobweb
public Cobweb()
buildClusterer
public void buildClusterer(Instances data) throws java.lang.Exception
Builds the clusterer.
data
- the training instances.
clusterInstance
public int clusterInstance(Instance instance) throws java.lang.Exception
Classifies a given instance.
instance
- the instance to be assigned to a cluster
numberOfClusters
public int numberOfClusters() throws java.lang.Exception
Returns the number of clusters.
addInstance
public void addInstance(Instance newInstance) throws java.lang.Exception
Adds an instance to the Cobweb tree.
newInstance
- the instance to be added
listOptions
public java.util.Enumeration listOptions()
Returns an enumeration describing the available options.
setOptions
public void setOptions(java.lang.String options[]) throws java.lang.Exception
Parses a given list of options.
Valid options are:
Acuity.
Cutoff.
options
- the list of options as an array of strings
acuityTipText
public java.lang.String acuityTipText()
Returns the tip text for this property
setAcuity
public void setAcuity(double a)
set the acuity.
a
- the acuity value
getAcuity
public double getAcuity()
get the acuity value
cutoffTipText
public java.lang.String cutoffTipText()
Returns the tip text for this property
setCutoff
public void setCutoff(double c)
set the cutoff
c
- the cutof
getCutoff
public double getCutoff()
get the cutoff
saveInstanceDataTipText
public java.lang.String saveInstanceDataTipText()
Returns the tip text for this property
getSaveInstanceData
public boolean getSaveInstanceData()
Get the value of saveInstances.
setSaveInstanceData
public void setSaveInstanceData(boolean newsaveInstances)
Set the value of saveInstances.
newsaveInstances
- Value to assign to saveInstances.
getOptions
public java.lang.String[] getOptions()
Gets the current settings of Cobweb.
toString
public java.lang.String toString()
Returns a description of the clusterer as a string.
graph
public java.lang.String graph() throws java.lang.Exception
Generates the graph string of the Cobweb tree
String
value
main
public static void main(java.lang.String argv[])
All Packages Class Hierarchy This Package Previous Next Index WEKA's home