edkinsgael / airhead-research

Automatically exported from code.google.com/p/airhead-research
0 stars 0 forks source link

HAC default cluster similarity function defined incorrectly #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Clustering cluster = new HierarchicalAgglomerativeClustering();
cluster.cluster(matrix, 10, System.getProperties());

What is the expected output? What do you see instead?
Expected output: a correct clustering
Observed output:

Exception in thread "main" java.lang.IllegalArgumentException: No enum const 
class edu.ucla.sspace.common.Similarity$SimType.cosineSimilarity
    at java.lang.Enum.valueOf(Enum.java:196)
    at edu.ucla.sspace.common.Similarity$SimType.valueOf(Similarity.java:60)
   at edu.ucla.sspace.clustering.HierarchicalAgglomerativeClustering.cluster(HierarchicalAgglomerativeClustering.java:210)
    at edu.ucla.sspace.clustering.HierarchicalAgglomerativeClustering.cluster(HierarchicalAgglomerativeClustering.java:192)

Please use labels and text to provide additional information.
the default value should be cosine, not cosineSimilarity

Original issue reported on code.google.com by FozzietheBeat@gmail.com on 3 Aug 2010 at 4:52

GoogleCodeExporter commented 9 years ago
Problem has been resolved.

Original comment by FozzietheBeat@gmail.com on 24 Feb 2011 at 8:44