"Clustering and Cosine Similarity"
ema
New Altair Community Member
Hi,
Can any one give me an example on how to make any clustering model use the cosine similarity
Thank you
Can any one give me an example on how to make any clustering model use the cosine similarity
Thank you
Tagged:
0
Answers
-
Hi Ema,
this is quite simple: Just select the Cosine Simularity in one of the clustering operators supporting different distance measures. An example:<operator name="Root" class="Process" expanded="yes">
Greetings,
<operator name="ExampleSetGenerator" class="ExampleSetGenerator">
<parameter key="number_examples" value="1000"/>
<parameter key="number_of_attributes" value="2"/>
<parameter key="target_function" value="three ring clusters"/>
</operator>
<operator name="AgglomerativeClustering" class="AgglomerativeClustering">
<parameter key="measure_types" value="NumericalMeasures"/>
<parameter key="numerical_measure" value="CosineSimilarity"/>
</operator>
<operator name="FlattenClusterModel" class="FlattenClusterModel">
</operator>
<operator name="ClusterModel2ExampleSet" class="ClusterModel2ExampleSet">
</operator>
</operator>
Sebastian0 -
Hi.
Thank you very much for your reply ,
0