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
Add cluster name as label [Solved]
CaptainChaos
Member Posts: 17 Contributor II
Hi Guys,
I worked with the following Porcess an it worked well.
I extraced the data from a excell file. in this file each column represents a different
document existing of 50-200 words. each columns had to rows one for the document itselfs and one for the
id. Does anybody know how to write to excel the results adding a third row to it containing the number
of the cluster it belongs too. I would like to use this column as label for supervised classification later on.
I worked with the following Porcess an it worked well.
I extraced the data from a excell file. in this file each column represents a different
document existing of 50-200 words. each columns had to rows one for the document itselfs and one for the
id. Does anybody know how to write to excel the results adding a third row to it containing the number
of the cluster it belongs too. I would like to use this column as label for supervised classification later on.
Thanks cheers
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.006">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.1.006" expanded="true" name="Process">
<parameter key="resultfile" value="C:\Users\Rojas\Desktop\perfekt für clustering\Daten_Reuters_Excell\test.res"/>
<process expanded="true" height="566" width="681">
<operator activated="true" class="read_excel" compatibility="5.1.006" expanded="true" height="60" name="Read Excel" width="90" x="45" y="75">
<parameter key="excel_file" value="C:\Users\Rojas\Desktop\read\dok.xls"/>
<parameter key="imported_cell_range" value="A1:A3400"/>
<list key="annotations">
<parameter key="0" value="Name"/>
</list>
<list key="data_set_meta_data_information">
<parameter key="0" value="content.true.text.attribute"/>
</list>
<parameter key="read_not_matching_values_as_missings" value="false"/>
<parameter key="datamanagement" value="double_sparse_array"/>
</operator>
<operator activated="false" class="map_clustering_on_labels" compatibility="5.1.006" expanded="true" height="76" name="Map Clustering on Labels" width="90" x="514" y="345"/>
<operator activated="true" class="text:data_to_documents" compatibility="5.1.001" expanded="true" height="60" name="Data to Documents" width="90" x="179" y="120">
<list key="specify_weights"/>
</operator>
<operator activated="true" class="text:process_documents" compatibility="5.1.001" expanded="true" height="94" name="Process Documents" width="90" x="313" y="120">
<parameter key="keep_text" value="true"/>
<process expanded="true" height="580" width="593">
<operator activated="true" class="text:tokenize" compatibility="5.1.001" expanded="true" height="60" name="Tokenize" width="90" x="112" y="30">
<parameter key="mode" value="specify characters"/>
<parameter key="characters" value="' '"/>
</operator>
<connect from_port="document" to_op="Tokenize" to_port="document"/>
<connect from_op="Tokenize" from_port="document" to_port="document 1"/>
<portSpacing port="source_document" spacing="0"/>
<portSpacing port="sink_document 1" spacing="0"/>
<portSpacing port="sink_document 2" spacing="0"/>
</process>
</operator>
<operator activated="true" class="k_means" compatibility="5.1.006" expanded="true" height="76" name="Clustering" width="90" x="447" y="120">
<parameter key="add_as_label" value="true"/>
<parameter key="k" value="50"/>
<parameter key="max_optimization_steps" value="50"/>
</operator>
<operator activated="false" class="data_to_similarity" compatibility="5.1.006" expanded="true" height="76" name="Data to Similarity" width="90" x="313" y="435">
<parameter key="measure_types" value="NumericalMeasures"/>
<parameter key="numerical_measure" value="CosineSimilarity"/>
</operator>
<connect from_op="Read Excel" from_port="output" to_op="Data to Documents" to_port="example set"/>
<connect from_op="Data to Documents" from_port="documents" to_op="Process Documents" to_port="documents 1"/>
<connect from_op="Process Documents" from_port="example set" to_op="Clustering" to_port="example set"/>
<connect from_op="Clustering" from_port="cluster model" to_port="result 1"/>
<connect from_op="Clustering" from_port="clustered set" to_port="result 2"/>
<portSpacing port="source_input 1" spacing="0"/>
<portSpacing port="sink_result 1" spacing="0"/>
<portSpacing port="sink_result 2" spacing="144"/>
<portSpacing port="sink_result 3" spacing="0"/>
</process>
</operator>
</process>
Tagged:
0