🥳 RAPIDMINER 9.9 IS OUT!!! 🥳

The updates in 9.9 power advanced use cases and offer productivity enhancements for users who prefer to code.

CLICK HERE TO DOWNLOAD

How to use Log operator within RapidMiner server process

kypexinkypexin Moderator, RapidMiner Certified Analyst, Member Posts: 286   Unicorn
edited November 2018 in Help
Hi rapidminers,

I have a trouble with using Log operator in the process which I run on RapidMiner server. I want to log some parameters from Optimize Parameters operator in a standard way to compare performance for, like, 20 iterations.
The operator offers to specify a filename but it is a path on the local machine only. If I run the process on the server, the local path is not resolved and no log file is written finally.
Any hint about how to write log file from within a server process?
Tagged:

Answers

  • Marco_BoeckMarco_Boeck Team Lead Software Engineering Administrator, Moderator, Employee, Member, University Professor Posts: 1,958   RM Engineering
    Hi,

    you don't need to write it to a file, it's optional. You can create an ExampleSet from it instead. See the following example process:

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <process version="6.6.000-SNAPSHOT">
      <context>
        <input/>
        <output/>
        <macros/>
      </context>
      <operator activated="true" class="process" compatibility="6.6.000-SNAPSHOT" expanded="true" name="Process">
        <process expanded="true">
          <operator activated="true" class="retrieve" compatibility="6.6.000-SNAPSHOT" expanded="true" height="60" name="Retrieve Deals" width="90" x="45" y="30">
            <parameter key="repository_entry" value="//Samples/data/Deals"/>
          </operator>
          <operator activated="true" class="log" compatibility="6.6.000-SNAPSHOT" expanded="true" height="76" name="Log" width="90" x="179" y="30">
            <list key="log">
              <parameter key="test" value="operator.Retrieve Deals.parameter.repository_entry"/>
            </list>
          </operator>
          <operator activated="true" class="log_to_data" compatibility="6.6.000-SNAPSHOT" expanded="true" height="94" name="Log to Data" width="90" x="313" y="30">
            <parameter key="log_name" value="Log"/>
          </operator>
          <connect from_op="Retrieve Deals" from_port="output" to_op="Log" to_port="through 1"/>
          <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_port="result 1"/>
          <portSpacing port="source_input 1" spacing="0"/>
          <portSpacing port="sink_result 1" spacing="0"/>
          <portSpacing port="sink_result 2" spacing="0"/>
        </process>
      </operator>
    </process>
    Regards,
    Marco
  • kypexinkypexin Moderator, RapidMiner Certified Analyst, Member Posts: 286   Unicorn
    Thanks a lot Marco, that's what I exactly needed.
Sign In or Register to comment.