2016-05-17 11 views
0

Ich benutze Rapid Miner, um einige Ergebnisse und Leistungen für den K-Medoids-Algorithmus zu sehen. Ich war in der Lage, das Schema zu erstellen und die Ausgabe zu sehen, aber ich würde gerne sehen, dass innerhalb jedes Clusters der zentrale Punkt (das gewählte Medoid) vorhanden ist. Gibt es irgendeinen Weg das zu tun?RapidMiner - k-Medoide. Identifizieren Sie das Medoid

Img1: Entwurf enter image description here

Img2: Ergebnis enter image description here

+0

K-Medoids in rapidminer ist eine fehlerhafte Implementierung, wenn ich mich richtig erinnere. Ich glaube, es implementiert keine K-Medoids, sondern eine nicht standardisierte Variante von K-Means. Aber seit ich Rapidminer zum Clustering angeschaut habe, ist es eine Weile her, weil ich ELKI viel mehr mag. –

Antwort

0

Sie den Extract Cluster Prototypes Operator kann ein Beispiel geben zu schaffen, um die Clusterzentren entsprechen. Sie können dann den Operator Append verwenden, um ihn mit den Originaldaten zu verknüpfen, obwohl es ein wenig Arbeit gibt, um die Beispielsätze kompatibel zu machen.

Hier ist ein Beispiel

<?xml version="1.0" encoding="UTF-8" standalone="no"?> 
<process version="7.0.001"> 
    <context> 
    <input/> 
    <output/> 
    <macros/> 
    </context> 
    <operator activated="true" class="process" compatibility="7.0.001" expanded="true" name="Process"> 
    <process expanded="true"> 
     <operator activated="true" class="retrieve" compatibility="7.0.001" expanded="true" height="68" name="Retrieve Iris" width="90" x="45" y="34"> 
     <parameter key="repository_entry" value="//Samples/data/Iris"/> 
     </operator> 
     <operator activated="true" class="k_medoids" compatibility="7.0.001" expanded="true" height="82" name="Clustering" width="90" x="179" y="136"> 
     <parameter key="k" value="3"/> 
     </operator> 
     <operator activated="true" class="generate_attributes" compatibility="7.0.001" expanded="true" height="82" name="Generate Attributes" width="90" x="313" y="136"> 
     <list key="function_descriptions"> 
      <parameter key="type" value="&quot;data&quot;"/> 
     </list> 
     </operator> 
     <operator activated="true" class="select_attributes" compatibility="7.0.001" expanded="true" height="82" name="Select Attributes" width="90" x="447" y="136"> 
     <parameter key="attribute_filter_type" value="subset"/> 
     <parameter key="attributes" value="label|id"/> 
     <parameter key="invert_selection" value="true"/> 
     <parameter key="include_special_attributes" value="true"/> 
     </operator> 
     <operator activated="true" class="extract_prototypes" compatibility="7.0.001" expanded="true" height="82" name="Extract Cluster Prototypes" width="90" x="313" y="34"/> 
     <operator activated="true" class="generate_attributes" compatibility="7.0.001" expanded="true" height="82" name="Generate Attributes (2)" width="90" x="447" y="34"> 
     <list key="function_descriptions"> 
      <parameter key="type" value="&quot;centroid&quot;"/> 
     </list> 
     </operator> 
     <operator activated="true" breakpoints="before" class="append" compatibility="7.0.001" expanded="true" height="103" name="Append" width="90" x="581" y="85"/> 
     <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="Extract Cluster Prototypes" to_port="model"/> 
     <connect from_op="Clustering" from_port="clustered set" to_op="Generate Attributes" to_port="example set input"/> 
     <connect from_op="Generate Attributes" from_port="example set output" to_op="Select Attributes" to_port="example set input"/> 
     <connect from_op="Select Attributes" from_port="example set output" to_op="Append" to_port="example set 2"/> 
     <connect from_op="Extract Cluster Prototypes" from_port="example set" to_op="Generate Attributes (2)" to_port="example set input"/> 
     <connect from_op="Generate Attributes (2)" from_port="example set output" to_op="Append" to_port="example set 1"/> 
     <connect from_op="Append" from_port="merged set" 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> 

Das type Attribut kann als die Farbe in einem Plan verwendet werden, so dass Sie die Zentroide sehen können.

Verwandte Themen