public class Cobweb extends RandomizableClusterer implements Drawable, TechnicalInformationHandler, UpdateableClusterer
@article{Fisher1987,
author = {D. Fisher},
journal = {Machine Learning},
number = {2},
pages = {139-172},
title = {Knowledge acquisition via incremental conceptual clustering},
volume = {2},
year = {1987}
}
@article{Gennari1990,
author = {J. H. Gennari and P. Langley and D. Fisher},
journal = {Artificial Intelligence},
pages = {11-61},
title = {Models of incremental concept formation},
volume = {40},
year = {1990}
}
Valid options are:
-A <acuity> Acuity. (default=1.0)
-C <cutoff> Cutoff. (default=0.002)
-S <num> Random number seed. (default 42)
RandomizableClusterer,
Drawable,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
class |
Cobweb.CNode
Inner class handling node operations for Cobweb.
|
BayesNet, Newick, NOT_DRAWABLE, TREE| Constructor and Description |
|---|
Cobweb()
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
acuityTipText()
Returns the tip text for this property
|
void |
addInstance(Instance newInstance)
Deprecated.
updateClusterer(Instance) should be used instead
|
void |
buildClusterer(Instances data)
Builds the clusterer.
|
int |
clusterInstance(Instance instance)
Classifies a given instance.
|
String |
cutoffTipText()
Returns the tip text for this property
|
double |
getAcuity()
get the acuity value
|
Capabilities |
getCapabilities()
Returns default capabilities of the clusterer.
|
double |
getCutoff()
get the cutoff
|
String[] |
getOptions()
Gets the current settings of Cobweb.
|
String |
getRevision()
Returns the revision string.
|
boolean |
getSaveInstanceData()
Get the value of saveInstances.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing
detailed information about the technical background of this class,
e.g., paper reference or book this class is based on.
|
Cobweb.CNode |
getTreeRoot()
Get the root of the tree.
|
String |
globalInfo()
Returns a string describing this clusterer
|
String |
graph()
Generates the graph string of the Cobweb tree
|
int |
graphType()
Returns the type of graphs this class
represents
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] argv)
Main method.
|
int |
numberOfClusters()
Returns the number of clusters.
|
String |
saveInstanceDataTipText()
Returns the tip text for this property
|
String |
seedTipText()
Returns the tip text for this property
|
void |
setAcuity(double a)
set the acuity.
|
void |
setCutoff(double c)
set the cutoff
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setSaveInstanceData(boolean newsaveInstances)
Set the value of saveInstances.
|
String |
toString()
Returns a description of the clusterer as a string.
|
void |
updateClusterer(Instance newInstance)
Adds an instance to the clusterer.
|
void |
updateFinished()
Singals the end of the updating.
|
getSeed, setSeeddistributionForInstance, forName, makeCopies, makeCopy, runClustererpublic String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic Capabilities getCapabilities()
getCapabilities in interface ClusterergetCapabilities in interface CapabilitiesHandlergetCapabilities in class AbstractClustererCapabilitiespublic void buildClusterer(Instances data) throws Exception
buildClusterer in interface ClustererbuildClusterer in class AbstractClustererdata - the training instances.Exception - if something goes wrong.public void updateFinished()
updateFinished in interface UpdateableClustererpublic int clusterInstance(Instance instance) throws Exception
clusterInstance in interface ClustererclusterInstance in class AbstractClustererinstance - the instance to be assigned to a clusterException - if instance could not be classified
successfullypublic int numberOfClusters()
numberOfClusters in interface ClusterernumberOfClusters in class AbstractClustererpublic Cobweb.CNode getTreeRoot()
public void updateClusterer(Instance newInstance) throws Exception
updateClusterer in interface UpdateableClusterernewInstance - the instance to be addedException - if something goes wrongpublic void addInstance(Instance newInstance) throws Exception
newInstance - the instance to be addedException - if something goes wrongupdateClusterer(Instance)public Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class RandomizableClustererpublic void setOptions(String[] options) throws Exception
-A <acuity> Acuity. (default=1.0)
-C <cutoff> Cutoff. (default=0.002)
-S <num> Random number seed. (default 42)
setOptions in interface OptionHandlersetOptions in class RandomizableClustereroptions - the list of options as an array of stringsException - if an option is not supportedpublic String acuityTipText()
public void setAcuity(double a)
a - the acuity valuepublic double getAcuity()
public String cutoffTipText()
public void setCutoff(double c)
c - the cutofpublic double getCutoff()
public String saveInstanceDataTipText()
public boolean getSaveInstanceData()
public void setSaveInstanceData(boolean newsaveInstances)
newsaveInstances - Value to assign to saveInstances.public String[] getOptions()
getOptions in interface OptionHandlergetOptions in class RandomizableClustererpublic String toString()
public int graphType()
public String getRevision()
getRevision in interface RevisionHandlergetRevision in class AbstractClustererpublic String seedTipText()
seedTipText in class RandomizableClustererpublic static void main(String[] argv)
argv - the commandline optionsCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.