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

Where is the "Write Weights" ans "Read Weights" operators?

yasinkayayasinkaya Member Posts: 10 Contributor II
How do I write to the file the features (weights output) I get in the feature selection operator.
Older versions of the RM had "write weights" and "read weights" operators for this purpose. But now, in the newest version they are depreciated.

Best Answers

Answers

  • MartinLiebigMartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientist
    Hi,
    we recommend to use Weights to Data first and then use the normal Write-CSV or Write-Excel if you need it readable. Otherwise you can use Store to write it into the repository.

    Best,
    Martin
    - Sr. Director Data Solutions, Altair RapidMiner -
    Dortmund, Germany
  • yasinkayayasinkaya Member Posts: 10 Contributor II
    edited October 2019
    Thank you Mr. @mschmitz.

    Then how do I do the opposite of that?

    I can't get true features saved to CSV file when I try to filter data using "read csv" and "data to weights". (Edit: Corrected this sentence, I didn't get an error message)

    How to perform the function "read weights".


    <?xml version="1.0" encoding="UTF-8"?><process version="9.4.001">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="9.4.001" expanded="true" name="Process">
        <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="9.4.001" expanded="true" height="68" name="Retrieve EMODB_Big_20FS" width="90" x="112" y="85">
            <parameter key="repository_entry" value=""/>
          </operator>
          <operator activated="true" class="read_csv" compatibility="9.4.001" expanded="true" height="68" name="Read CSV" width="90" x="112" y="238">
            <parameter key="csv_file" value="Rapid_FS_Log.csv"/>
            <parameter key="column_separators" value=";"/>
            <parameter key="trim_lines" value="false"/>
            <parameter key="use_quotes" value="true"/>
            <parameter key="quotes_character" value="&quot;"/>
            <parameter key="escape_character" value="\"/>
            <parameter key="skip_comments" value="false"/>
            <parameter key="comment_characters" value="#"/>
            <parameter key="starting_row" value="1"/>
            <parameter key="parse_numbers" value="true"/>
            <parameter key="decimal_character" value="."/>
            <parameter key="grouped_digits" value="false"/>
            <parameter key="grouping_character" value=","/>
            <parameter key="infinity_representation" value=""/>
            <parameter key="date_format" value=""/>
            <parameter key="first_row_as_names" value="true"/>
            <list key="annotations"/>
            <parameter key="time_zone" value="SYSTEM"/>
            <parameter key="locale" value="English (United States)"/>
            <parameter key="encoding" value="SYSTEM"/>
            <parameter key="read_all_values_as_polynominal" value="false"/>
            <list key="data_set_meta_data_information"/>
            <parameter key="read_not_matching_values_as_missings" value="true"/>
            <parameter key="datamanagement" value="double_array"/>
            <parameter key="data_management" value="auto"/>
          </operator>
          <operator activated="true" class="data_to_weights" compatibility="9.4.001" expanded="true" height="82" name="Data to Weights" width="90" x="246" y="238">
            <parameter key="normalize_weights" value="false"/>
            <parameter key="sort_weights" value="true"/>
            <parameter key="sort_direction" value="ascending"/>
          </operator>
          <operator activated="true" class="select_by_weights" compatibility="9.4.001" expanded="true" height="103" name="Select by Weights" width="90" x="313" y="85">
            <parameter key="weight_relation" value="equals"/>
            <parameter key="weight" value="1.0"/>
            <parameter key="k" value="10"/>
            <parameter key="p" value="0.5"/>
            <parameter key="deselect_unknown" value="true"/>
            <parameter key="use_absolute_weights" value="true"/>
          </operator>
          <connect from_op="Retrieve EMODB_Big_20FS" from_port="output" to_op="Select by Weights" to_port="example set input"/>
          <connect from_op="Read CSV" from_port="output" to_op="Data to Weights" to_port="example set"/>
          <connect from_op="Data to Weights" from_port="weights" to_op="Select by Weights" to_port="weights"/>
          <connect from_op="Data to Weights" from_port="example set" to_port="result 2"/>
          <connect from_op="Select by Weights" from_port="weights" 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"/>
          <portSpacing port="sink_result 3" spacing="0"/>
        </process>
      </operator>
    </process>

  • varunm1varunm1 Member Posts: 1,207 Unicorn
    Hello @yasinkaya

    Looks like your process flow is fine. Can you inform the error details?
    Regards,
    Varun
    https://www.varunmandalapu.com/

    Be Safe. Follow precautions and Maintain Social Distancing

  • yasinkayayasinkaya Member Posts: 10 Contributor II
    There is no error. Sorry. But it don't give expected output from the weights port. I'll add a picture. 

  • yasinkayayasinkaya Member Posts: 10 Contributor II
    It is not select features using saved features to CSV file. 
    Why Write Weights and Read Weights deprecated?

    If there is no operator with the same convenience instead, why did these operators removed?
  • yasinkayayasinkaya Member Posts: 10 Contributor II
    Thanks you very much @Marco_Boeck and @tftemme.
    This two solutions enough for me. 
Sign In or Register to comment.