|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
buildClusterer(Instances data)
Generates the clustering. |
void |
buildClusterer(Instances labeledData,
Instances unlabeledData,
int classIndex,
int numClusters,
int startingIndexOfTest)
Generates the clustering using labeled seeds |
java.util.ArrayList |
getClusters()
Returns an ArrayList of clusters |
Instances |
getInstances()
Return the instances used for clustering |
int |
getNumClusters()
Get the number of clusters. |
Clusterer |
getThisClusterer()
We always want to implement SemiSupClusterer from a class extending Clusterer. |
double |
objectiveFunction()
Returns objective function if it has one, else -1. |
void |
resetClusterer()
Reset all values that have been learned |
void |
seedClusterer(java.util.HashMap seed_params)
Seed the clusterer using specified seeding |
void |
setMetric(Metric m)
Set the clusterer metric |
void |
setNumClusters(int n)
Set the number of clusters. |
void |
setVerbose(boolean v)
Sets verbose level |
void |
trainClusterer(Instances instances)
Train the clusterer using provided training data |
Method Detail |
public Clusterer getThisClusterer()
public void setNumClusters(int n)
public int getNumClusters()
public void setVerbose(boolean v)
public java.util.ArrayList getClusters() throws java.lang.Exception
java.lang.Exception
public Instances getInstances() throws java.lang.Exception
java.lang.Exception
public void buildClusterer(Instances data) throws java.lang.Exception
data
- set of instances to cluster
java.lang.Exception
- if something is wrongpublic void buildClusterer(Instances labeledData, Instances unlabeledData, int classIndex, int numClusters, int startingIndexOfTest) throws java.lang.Exception
labeledData
- set of labeled instances to use as seedsunlabeledData
- set of unlabeled instancesclassIndex
- attribute index in labeledData which holds class infonumClusters
- number of clusters to createstartingIndexOfTest
- from where test data starts in unlabeledData, useful if clustering is transductive, set to -1 if not relevant
java.lang.Exception
- if something is wrongpublic void trainClusterer(Instances instances) throws java.lang.Exception
java.lang.Exception
public void seedClusterer(java.util.HashMap seed_params) throws java.lang.Exception
seed_params
- HashMap of seeding parameters
java.lang.Exception
public void resetClusterer() throws java.lang.Exception
java.lang.Exception
public void setMetric(Metric m) throws java.lang.Exception
java.lang.Exception
public double objectiveFunction()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |