Options

Editing sink and source names

TobiasTobias Member Posts: 2 Contributor I
edited November 2018 in Help
Short How do I change the name of the source and sink (input/output) of a process in rapidminer?

Background I'm rather new to RapidMiner. I am starting to nest my processes within each other, to help separate different levels of abstraction. This means I iften connect the source and sinks of my own sub-processes.

My problem is that all my sinks are called Result 1/2/... and sources are called Input 1/2/... This makes it difficult to remember which datastream I have connected to each port.

It will be great to change the name of these, and possible write some brief documentation of the sub-processes, that I can review later in the Help view.

Hope someone can help.

Answers

  • Options
    frasfras Member Posts: 93 Contributor II
    Please provide your process as XML using
    
    Otherwise it is hard to imagine what you have built. 
  • Options
    TobiasTobias Member Posts: 2 Contributor I
    This is a pretty general thing: When I work on any process, I would like to be able to rename the input and output connectors.

    But anyway here is a minimal example. Assume that I want to rename the output/sink to be "First" and "Second" instead of "Result 1" and "Result 2".

    Duplicate.rmp:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="6.0.002">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="6.0.002" 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="multiply" compatibility="6.0.002" expanded="true" height="94" name="Multiply" width="90" x="447" y="30"/>
          <connect from_port="input 1" to_op="Multiply" to_port="input"/>
          <connect from_op="Multiply" from_port="output 1" to_port="result 1"/>
          <connect from_op="Multiply" from_port="output 2" to_port="result 2"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="source_input 2" 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>
    Duplicate.properties

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
    <comment>Properties of repository entry Duplicate</comment>
    <entry key="owner">Tobias</entry>
    </properties>

  • Options
    MariusHelfMariusHelf RapidMiner Certified Expert, Member Posts: 1,869 Unicorn
    Hi,

    unfortunately you cannot rename the operator ports. But the results in the results perspective will be named according to the operator that last touched or generated the data.

    Btw, you can see the process xml easily by activating the XML view in the menu under View -> Show View.

    Best regards,
    Marius
Sign In or Register to comment.