Pages: [1]
Author Topic: Flatten clustering's centroid  (Read 2623 times)
Posts: 3

« on: July 29, 2013, 02:20:46 AM »

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.
Sr. Member
Posts: 415

« Reply #1 on: July 29, 2013, 09:49:54 AM »

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">
  <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 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"/>
        <parameter key="group_by_attributes" value="|cluster"/>
      <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"/>


Pages: [1]
Jump to: