|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | 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 |
String[] |
getOptions()
Gets the current settings of Cobweb. |
Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(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(String[] options)
Parses a given list of options. |
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 Exception
buildClusterer
in class Clusterer
data
- the training instances.
Exception
- if something goes wrong.public int numberOfClusters() throws Exception
numberOfClusters
in class Clusterer
Exception
- if something goes wrong.public int clusterInstance(Instance instance) throws Exception
clusterInstance
in class Clusterer
instance
- the instance to cluster.
Exception
- if something goes wrong.public void add(weka.clusterers.Cobweb.CTree node, weka.clusterers.Cobweb.CTree tree) throws Exception
node
- the node to be added.tree
- the tree.
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 Exception
tree
- the tree.node
- the node to be added.aU
- ??baseU
- ??
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 Exception
tree
- the tree.node
- the node to be added.aU
- ??baseU
- ??
Exception
- if something goes wrong.public String toString()
toString
in class Object
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
-A <0-100>
Acuity.
-C <0-100>
Cutoff.
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
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 String[] getOptions()
getOptions
in interface OptionHandler
public static void main(String[] argv)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |