|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--weka.clusterers.Clusterer
|
+--weka.clusterers.Cobweb
| Constructor Summary | |
Cobweb()
|
|
| Method Summary | |
void |
add(weka.clusterers.Cobweb.CTree node,
weka.clusterers.Cobweb.CTree tree)
Adds an example to the tree. |
weka.clusterers.Cobweb.CTree |
bestHost(weka.clusterers.Cobweb.CTree tree,
weka.clusterers.Cobweb.CTree node,
double aU,
double baseU)
Finds the best place to add a new node during training. |
weka.clusterers.Cobweb.CTree |
bestHostCluster(weka.clusterers.Cobweb.CTree tree,
weka.clusterers.Cobweb.CTree node,
double aU,
double baseU)
Finds the cluster that an unseen instance belongs to. |
void |
buildClusterer(Instances data)
Builds the clusterer. |
int |
clusterInstance(Instance instance)
Clusters an instance. |
int |
getAcuity()
get the accuity value |
int |
getCutoff()
get the cutoff |
java.lang.String[] |
getOptions()
Gets the current settings of Cobweb. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
|
int |
numberOfClusters()
Returns the number of clusters. |
void |
setAcuity(int a)
set the accuity. |
void |
setCutoff(int c)
set the cutoff |
void |
setOptions(java.lang.String[] options)
Parses a given list of options. |
java.lang.String |
toString()
Returns a description of the clusterer as a string. |
| Methods inherited from class weka.clusterers.Clusterer |
forName, makeCopies |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Cobweb()
| Method Detail |
public void buildClusterer(Instances data)
throws java.lang.Exception
buildClusterer in class Clustererdata - the training instances.java.lang.Exception - if something goes wrong.
public int numberOfClusters()
throws java.lang.Exception
numberOfClusters in class Clustererjava.lang.Exception - if something goes wrong.
public int clusterInstance(Instance instance)
throws java.lang.Exception
clusterInstance in class Clustererinstance - the instance to cluster.java.lang.Exception - if something goes wrong.
public void add(weka.clusterers.Cobweb.CTree node,
weka.clusterers.Cobweb.CTree tree)
throws java.lang.Exception
node - the node to be added.tree - the tree.java.lang.Exception - if something goes wrong.
public weka.clusterers.Cobweb.CTree bestHostCluster(weka.clusterers.Cobweb.CTree tree,
weka.clusterers.Cobweb.CTree node,
double aU,
double baseU)
throws java.lang.Exception
tree - the tree.node - the node to be added.aU - ??baseU - ??java.lang.Exception - if something goes wrong.
public weka.clusterers.Cobweb.CTree bestHost(weka.clusterers.Cobweb.CTree tree,
weka.clusterers.Cobweb.CTree node,
double aU,
double baseU)
throws java.lang.Exception
tree - the tree.node - the node to be added.aU - ??baseU - ??java.lang.Exception - if something goes wrong.public java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-A <0-100>
Acuity.
-C <0-100>
Cutoff.
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic void setAcuity(int a)
a - the accuity between 0 and 100public int getAcuity()
public void setCutoff(int c)
c - the cutoff between 0 and 100public int getCutoff()
public java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||