|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.filter.trc.carrot.filter.cluster.rough.clustering.AbstractClusterer
org.carrot2.filter.trc.carrot.filter.cluster.rough.clustering.AbstractKMeansClusterer
public abstract class AbstractKMeansClusterer
| Field Summary | |
|---|---|
static double |
CLUSTER_SIMILARITY_THRESHOLD
|
protected double |
clusterSimilarityThreshold
Threshold for similarity above which document is assigned to cluster |
protected IRContext |
corpus
|
protected int |
iteration
|
protected static org.apache.log4j.Logger |
log
|
static int |
MAX_ITERATION
|
protected int |
maxIteration
|
protected Similarity |
metric
|
protected int |
noOfInitialClusters
Number of initial clusters |
protected int |
nterm
|
protected double |
overallChanges
|
protected Timer |
timer
|
protected BitVector |
unclassifiedObjects
|
| Fields inherited from class org.carrot2.filter.trc.carrot.filter.cluster.rough.clustering.AbstractClusterer |
|---|
clusters, objects |
| Constructor Summary | |
|---|---|
protected |
AbstractKMeansClusterer(int noOfClusters,
IRContext context,
Similarity distance)
|
| Method Summary | |
|---|---|
protected double |
calculateCentroidChange(FeatureVector oldCentroid,
FeatureVector newCentroid)
|
protected void |
calculateClusterSimilarities(Cluster[] clusters)
Calculate internal similarity of cluster |
protected Cluster[] |
createOtherTopicCluster(Cluster[] clusters,
Object[] objects)
Create "other" cluster for unclassified objects |
protected double |
diff(FeatureVector v1,
FeatureVector v2)
|
protected void |
findClusterDescriptionUsingPhrases(Cluster[] currentClusters,
Clusterable[] objects)
|
protected void |
findMostDicriminativeFeatures(Cluster[] currentClusters,
Clusterable[] objects)
|
protected boolean |
fuzzyEquals(double expected,
double value,
double delta)
|
protected Clusterable |
generateRepresentative(Clusterable clusterable)
|
BitVector |
getUnclassifiedObjects()
|
Cluster[] |
initialization(Object[] objects)
|
| Methods inherited from class org.carrot2.filter.trc.carrot.filter.cluster.rough.clustering.AbstractClusterer |
|---|
clustering, doClustering, getClusters, postProcessing, stopCondition |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Timer timer
protected BitVector unclassifiedObjects
protected int noOfInitialClusters
protected static final org.apache.log4j.Logger log
protected Similarity metric
protected double overallChanges
protected int nterm
protected int maxIteration
protected int iteration
protected IRContext corpus
public static final double CLUSTER_SIMILARITY_THRESHOLD
public static final int MAX_ITERATION
protected double clusterSimilarityThreshold
| Constructor Detail |
|---|
protected AbstractKMeansClusterer(int noOfClusters,
IRContext context,
Similarity distance)
| Method Detail |
|---|
protected void calculateClusterSimilarities(Cluster[] clusters)
clusters - public Cluster[] initialization(Object[] objects)
initialization in class AbstractClustererprotected Clusterable generateRepresentative(Clusterable clusterable)
protected double calculateCentroidChange(FeatureVector oldCentroid,
FeatureVector newCentroid)
protected double diff(FeatureVector v1,
FeatureVector v2)
protected boolean fuzzyEquals(double expected,
double value,
double delta)
public BitVector getUnclassifiedObjects()
protected Cluster[] createOtherTopicCluster(Cluster[] clusters,
Object[] objects)
objects - clusters -
protected void findClusterDescriptionUsingPhrases(Cluster[] currentClusters,
Clusterable[] objects)
protected void findMostDicriminativeFeatures(Cluster[] currentClusters,
Clusterable[] objects)
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||