The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

"Clustering and Cosine Similarity"

emaema Member Posts: 33 Maven
edited May 2019 in Help
Hi,

Can any one give me an example on how to make any clustering model use the cosine similarity

Thank you
Tagged:

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,531 Unicorn
    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">
        <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>
    Greetings,
      Sebastian
  • emaema Member Posts: 33 Maven
    Hi.
    Thank you very much for your reply ,

Sign In or Register to comment.