image

🎉 🎉 RAPIDMINER 9.10 IS OUT!!! 🎉🎉

Download the latest version helping analytics teams accelerate time-to-value for streaming and IIOT use cases.

CLICK HERE TO DOWNLOAD

"Flatten clustering's centroid"

RemixmanRemixman Member Posts: 3 Contributor I
edited June 2019 in Help
We have the centroid plot view for visualize clustering centroid in k-means operator. But when use agglomerative + flatten cluster, I can't see the centroid. Are there any method to show flatten clustering's centroid.
Tagged:

Answers

  • awchisholmawchisholm RapidMiner Certified Expert, Member Posts: 458   Unicorn
    Agglomerative cluster models don't work with the Extract Cluster Prototypes operator; it expects a centroid model. You would have to calculate them manually using the Aggregate operator.

    Something like this
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="5.3.008">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="5.3.008" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="retrieve" compatibility="5.3.008" expanded="true" height="60" name="Retrieve Iris" width="90" x="45" y="75">
            <parameter key="repository_entry" value="//Samples/data/Iris"/>
          </operator>
          <operator activated="true" class="agglomerative_clustering" compatibility="5.3.008" expanded="true" height="76" name="Clustering" width="90" x="45" y="165"/>
          <operator activated="true" class="flatten_clustering" compatibility="5.3.008" expanded="true" height="76" name="Flatten Clustering" width="90" x="179" y="165"/>
          <operator activated="true" class="aggregate" compatibility="5.3.008" expanded="true" height="76" name="Aggregate" width="90" x="313" y="165">
            <list key="aggregation_attributes">
              <parameter key="a1" value="average"/>
              <parameter key="a2" value="average"/>
              <parameter key="a3" value="average"/>
              <parameter key="a4" value="average"/>
            </list>
            <parameter key="group_by_attributes" value="|cluster"/>
          </operator>
          <connect from_op="Retrieve Iris" from_port="output" to_op="Clustering" to_port="example set"/>
          <connect from_op="Clustering" from_port="cluster model" to_op="Flatten Clustering" to_port="hierarchical"/>
          <connect from_op="Clustering" from_port="example set" to_op="Flatten Clustering" to_port="example set"/>
          <connect from_op="Flatten Clustering" from_port="example set" to_op="Aggregate" to_port="example set input"/>
          <connect from_op="Aggregate" from_port="example set output" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
    Andrew
Sign In or Register to comment.