buliugu / airhead-research

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

HierarchicalAgglomerativeClustering#DEFAULT_SIMILARITY_FUNCTION_PROPERTY has wrong value #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.run HierarchicalAgglomerativeClustering#cluster(Matrix m,
                                int numClusters,
                                Properties props) with default property values.

What is the expected output? What do you see instead?
It is expected that the clustering algorithm will run successfully. However, an 
exception is thrown:

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)

What version of the product are you using? On what operating system?
Building from r1116.

Please provide any additional information below.
DEFAULT_SIMILARITY_FUNCTION_PROPERTY should be "COSINE", not "cosineSimilarity".

Original issue reported on code.google.com by an.velin...@gmail.com on 6 Dec 2010 at 2:09

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
it was my mistake, the issue can be deleted.

Original comment by an.velin...@gmail.com on 16 Dec 2010 at 9:45

GoogleCodeExporter commented 9 years ago

Original comment by FozzietheBeat@gmail.com on 31 Jan 2011 at 10:07