public class ClustererStatistics extends java.lang.Object implements java.io.Serializable, Printable
Developer's Note: This class is not yet Commandable
Implemented Print Commands:
dist - Print fraction of entries entries in each cluster attr [<number>] - Prints out clustering power of attributes (ordered by power)
clust [<number attr>] - Print out the mean of each attribute of all entries in each cluster
BaseClusterer
,
Serialized FormConstructor and Description |
---|
ClustererStatistics() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
about()
Prints a simple status message about this object
|
void |
evaluate(Dataset[] Clusters)
Characterize the performance of a cluster
|
boolean |
isTrained() |
java.lang.String |
printAttributes()
Print the name and separation power of all attributes used during clustering
|
java.lang.String |
printAttributes(int number)
Print the name and separation power of a certain number of attributes
|
java.lang.String |
printClusters()
Print out attributes name, separation power, and mean for each cluster for
all attributes used in clustering
|
java.lang.String |
printClusters(int numAttributesToPrint)
Print out attributes name, separation power, and mean for each cluster for a certain
number of attributes
|
java.lang.String |
printCommand(java.util.List<java.lang.String> Command)
Handles more complicated printing commands.
|
java.lang.String |
printDescription(boolean htmlFormat)
Print full name of object, and a simple description of the options.
|
java.lang.String |
printDistribution()
Print the distribution between each cluster
|
public boolean isTrained()
public void evaluate(Dataset[] Clusters)
Clusters
- Clusters formed by clusterer during trainingpublic java.lang.String about()
Printable
public java.lang.String printDescription(boolean htmlFormat)
Printable
Example: For a model training a separate WekaRegression for intermetallics
magpie.models.regression.SplitRegression
printDescription
in interface Printable
htmlFormat
- Whether format for output to an HTML page
(e.g., <div> to create indentation) or for printing to screen.#printModel()
public java.lang.String printDistribution()
public java.lang.String printAttributes()
public java.lang.String printAttributes(int number)
number
- Number to printpublic java.lang.String printClusters()
public java.lang.String printClusters(int numAttributesToPrint)
numAttributesToPrint
- Number of attributes to print (storing with most powerful)public java.lang.String printCommand(java.util.List<java.lang.String> Command) throws java.lang.Exception
Printable
printCommand
in interface Printable
Command
- Command specifying what to printjava.lang.Exception
- If command not understood