Options

i want rapid miner show me result(Execution Time) in millisecond?

rohamfarahanirohamfarahani Member Posts: 1 Newbie
i want rapid miner show me result(Execution Time) in millisecond?
Right Now rapid Miner show result to me 0 s, but I want show result to me in Milli Second, What can do this?

Answers

  • Options
    MarcoBarradasMarcoBarradas Administrator, Employee, RapidMiner Certified Analyst, Member Posts: 272 Unicorn
    Hi @rohamfarahani,


    You can use the Log operator to obtain the process execution time. You can store it or print it to the console.

    Here is a quick example.

    <?xml version="1.0" encoding="UTF-8"?><process version="9.10.000">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="6.0.002" 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="9.10.000" expanded="true" height="68" name="Golf" origin="GENERATED_TUTORIAL" width="90" x="179" y="85">
            <parameter key="repository_entry" value="//Samples/data/Golf"/>
          </operator>
          <operator activated="true" class="concurrency:parallel_decision_tree" compatibility="9.4.000" expanded="true" height="103" name="Decision Tree" origin="GENERATED_TUTORIAL" width="90" x="581" y="85">
            <parameter key="criterion" value="gain_ratio"/>
            <parameter key="maximal_depth" value="20"/>
            <parameter key="apply_pruning" value="true"/>
            <parameter key="confidence" value="0.25"/>
            <parameter key="apply_prepruning" value="true"/>
            <parameter key="minimal_gain" value="0.1"/>
            <parameter key="minimal_leaf_size" value="2"/>
            <parameter key="minimal_size_for_split" value="4"/>
            <parameter key="number_of_prepruning_alternatives" value="3"/>
          </operator>
          <operator activated="true" class="log" compatibility="9.10.000" expanded="true" height="82" name="Log" width="90" x="447" y="289">
            <list key="log">
              <parameter key="Retrieve DS" value="operator.Golf.value.execution-time"/>
              <parameter key="Decision Tree" value="operator.Decision Tree.value.execution-time"/>
              <parameter key="Process Execution Time (ms)" value="operator.Process.value.time"/>
              <parameter key="Process Used Memory (bytes)" value="operator.Process.value.memory"/>
            </list>
            <parameter key="sorting_type" value="none"/>
            <parameter key="sorting_k" value="100"/>
            <parameter key="persistent" value="false"/>
          </operator>
          <operator activated="true" class="log_to_data" compatibility="9.10.000" expanded="true" height="103" name="Log to Data" width="90" x="581" y="289"/>
          <operator activated="true" class="extract_macro" compatibility="9.10.000" expanded="true" height="68" name="Extract Macro" width="90" x="715" y="289">
            <parameter key="macro" value="MS"/>
            <parameter key="macro_type" value="data_value"/>
            <parameter key="statistics" value="average"/>
            <parameter key="attribute_name" value="Process Execution Time (ms)"/>
            <parameter key="example_index" value="1"/>
            <list key="additional_macros"/>
          </operator>
          <operator activated="true" class="print_to_console" compatibility="9.10.000" expanded="true" height="82" name="Print to Console" width="90" x="849" y="289">
            <parameter key="log_value" value="Executed in %{MS} milliseconds"/>
          </operator>
          <connect from_op="Golf" from_port="output" to_op="Decision Tree" to_port="training set"/>
          <connect from_op="Log" from_port="through 1" to_op="Log to Data" to_port="through 1"/>
          <connect from_op="Log to Data" from_port="exampleSet" to_op="Extract Macro" to_port="example set"/>
          <connect from_op="Extract Macro" from_port="example set" to_op="Print to Console" to_port="through 1"/>
          <connect from_op="Print to Console" from_port="through 1" to_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="42"/>
          <portSpacing port="sink_result 2" spacing="21"/>
        </process>
      </operator>
    </process>


Sign In or Register to comment.