how to get the “ weights ” from operator “Correlation Matrix”?

AP
AP Altair Community Member

run this 

how to get this result?

Tagged:

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • RolandJones
    RolandJones
    Altair Employee

    Hi @AP,

    This is the third output of the Correlation Matrix operator:

    Best,

    Roland

  • AP
    AP Altair Community Member
  • RolandJones
    RolandJones
    Altair Employee

    Hi @AP,

    The value is calculated by taking the average of the row in the squared correlation matrix, and subtracting from 1. Please see the attached example which you can paste into the XML panel.

    Thanks,

    Roland

    <?xml version="1.0" encoding="UTF-8"?><process version="11.0.001">  <context>    <input/>    <output/>    <macros/>  </context>  <operator activated="true" class="process" compatibility="11.0.001" expanded="true" name="Process" origin="GENERATED_TUTORIAL">    <parameter key="logverbosity" value="init"/>    <parameter key="random_seed" value="2001"/>    <parameter key="send_mail" value="never"/>    <parameter key="notification_email" value=""/>    <parameter key="process_duration_for_mail" value="30"/>    <parameter key="encoding" value="SYSTEM"/>    <process expanded="true">      <operator activated="true" class="retrieve" compatibility="11.0.001" expanded="true" height="68" name="Golf" origin="GENERATED_TUTORIAL" width="90" x="45" y="289">        <parameter key="repository_entry" value="//Samples/data/Golf"/>      </operator>      <operator activated="true" class="nominal_to_binominal" compatibility="11.0.001" expanded="true" height="103" name="Nominal to Binominal" origin="GENERATED_TUTORIAL" width="90" x="179" y="289">        <parameter key="return_preprocessing_model" value="false"/>        <parameter key="attribute_filter_type" value="subset"/>        <parameter key="attribute" value=""/>        <parameter key="attributes" value="Play|Wind"/>        <parameter key="use_except_expression" value="false"/>        <parameter key="value_type" value="nominal"/>        <parameter key="use_value_type_exception" value="false"/>        <parameter key="except_value_type" value="file_path"/>        <parameter key="block_type" value="single_value"/>        <parameter key="use_block_type_exception" value="false"/>        <parameter key="except_block_type" value="single_value"/>        <parameter key="invert_selection" value="false"/>        <parameter key="include_special_attributes" value="true"/>        <parameter key="transform_binominal" value="false"/>        <parameter key="use_underscore_in_name" value="false"/>      </operator>      <operator activated="true" class="blending:select_attributes" compatibility="11.0.001" expanded="true" height="82" name="Select Attributes" width="90" x="313" y="289">        <parameter key="type" value="exclude attributes"/>        <parameter key="attribute_filter_type" value="one attribute"/>        <parameter key="select_attribute" value="Outlook"/>        <parameter key="select_subset" value=""/>        <parameter key="also_apply_to_special_attributes_(id,_label..)" value="false"/>      </operator>      <operator activated="true" class="concurrency:correlation_matrix" compatibility="8.2.000" expanded="true" height="103" name="Correlation Matrix" origin="GENERATED_TUTORIAL" width="90" x="447" y="289">        <parameter key="type" value="include attributes"/>        <parameter key="attribute_filter_type_" value="all attributes"/>        <parameter key="select_attribute" value=""/>        <parameter key="select_subset" value=""/>        <parameter key="also_apply_to_special_attributes_(id,_label..)" value="false"/>        <parameter key="attribute_filter_type" value="all"/>        <parameter key="attribute" value=""/>        <parameter key="attributes" value=""/>        <parameter key="use_except_expression" value="false"/>        <parameter key="value_type" value="attribute_value"/>        <parameter key="use_value_type_exception" value="false"/>        <parameter key="except_value_type" value="time"/>        <parameter key="block_type" value="attribute_block"/>        <parameter key="use_block_type_exception" value="false"/>        <parameter key="except_block_type" value="value_matrix_row_start"/>        <parameter key="invert_selection" value="false"/>        <parameter key="include_special_attributes" value="true"/>        <parameter key="normalize_weights" value="false"/>        <parameter key="squared_correlation" value="true"/>      </operator>      <operator activated="true" class="converters:matrix_2_example_set" compatibility="1.3.002" expanded="true" height="82" name="Matrix to ExampleSet" width="90" x="514" y="34">        <parameter key="pairwise_list" value="false"/>        <parameter key="symmetric_matrix" value="false"/>      </operator>      <operator activated="true" class="generate_aggregation" compatibility="11.0.001" expanded="true" height="82" name="Generate Aggregation" width="90" x="648" y="34">        <parameter key="attribute_name" value="avg"/>        <parameter key="attribute_filter_type" value="all"/>        <parameter key="attribute" value=""/>        <parameter key="attributes" value=""/>        <parameter key="use_except_expression" value="false"/>        <parameter key="value_type" value="attribute_value"/>        <parameter key="use_value_type_exception" value="false"/>        <parameter key="except_value_type" value="time"/>        <parameter key="block_type" value="attribute_block"/>        <parameter key="use_block_type_exception" value="false"/>        <parameter key="except_block_type" value="value_matrix_row_start"/>        <parameter key="invert_selection" value="false"/>        <parameter key="include_special_attributes" value="false"/>        <parameter key="aggregation_function" value="average"/>        <parameter key="concatenation_separator" value="|"/>        <parameter key="keep_all" value="false"/>        <parameter key="ignore_missings" value="true"/>        <parameter key="ignore_missing_attributes" value="false"/>      </operator>      <operator activated="true" class="blending:generate_columns" compatibility="11.0.001" expanded="true" height="82" name="Generate Attributes" width="90" x="782" y="34">        <list key="function_descriptions">          <parameter key="weight" value="1-[avg]"/>        </list>        <parameter key="keep_all_columns" value="true"/>        <parameter key="default_time_zone" value="Europe/London"/>      </operator>      <connect from_op="Golf" from_port="output" to_op="Nominal to Binominal" to_port="example set input"/>      <connect from_op="Nominal to Binominal" 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="Correlation Matrix" to_port="example set"/>      <connect from_op="Correlation Matrix" from_port="matrix" to_op="Matrix to ExampleSet" to_port="matrix"/>      <connect from_op="Correlation Matrix" from_port="weights" to_port="result 2"/>      <connect from_op="Matrix to ExampleSet" from_port="example set" to_op="Generate Aggregation" to_port="example set input"/>      <connect from_op="Generate Aggregation" from_port="example set output" to_op="Generate Attributes" to_port="table input"/>      <connect from_op="Generate Attributes" from_port="table output" to_port="result 1"/>      <portSpacing port="source_input 1" spacing="0"/>      <portSpacing port="sink_result 1" spacing="21"/>      <portSpacing port="sink_result 2" spacing="0"/>      <portSpacing port="sink_result 3" spacing="0"/>    </process>  </operator></process>
    
  • AP
    AP Altair Community Member

    “squared correlation matrix”,how to get this?the type of “play” is categorical,the

    type of “outlook” and “wind” is categorical,the other is continuous



  • RolandJones
    RolandJones
    Altair Employee

    Hi,

    Squared correlation matrix is using the Correlation Matrix operator with "squared correlation" ticked on.

    Thanks,

    Roland

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.