Log returning "?"

edinsda2edinsda2 Member Posts: 5 Contributor I
edited November 2018 in Help

Dear All,


I am using a log file on on a cross validation inside an Optimize Parameters function. The cross validation run on a kNN model with performance measured by a performance (regression) function. When I use the log file to view my performance measures (absolute_error and relative_error) for each iteration the values returned is a ?.


In the log file I have selected Absoluter Error - Performance - value - Absolute Error


Thank you in advance for your help

Below is the XML Code (I think)

<?xml version="1.0" encoding="UTF-8"?><process version="7.5.001">
<operator activated="true" class="process" compatibility="7.5.001" expanded="true" name="Process">
<process expanded="true">
<operator activated="true" class="concurrency:cross_validation" compatibility="7.5.001" expanded="true" height="145" name="Cross Validation" width="90" x="380" y="85">
<process expanded="true">
<operator activated="true" class="k_nn" compatibility="7.5.001" expanded="true" height="82" name="k-NN (2)" width="90" x="179" y="34">
<parameter key="k" value="2"/>
<connect from_port="training set" to_op="k-NN (2)" to_port="training set"/>
<connect from_op="k-NN (2)" from_port="model" to_port="model"/>
<portSpacing port="source_training set" spacing="0"/>
<portSpacing port="sink_model" spacing="0"/>
<portSpacing port="sink_through 1" spacing="0"/>
<process expanded="true">
<operator activated="true" class="apply_model" compatibility="7.5.001" expanded="true" height="82" name="Apply Model" width="90" x="112" y="34">
<list key="application_parameters"/>
<operator activated="true" class="performance" compatibility="7.5.001" expanded="true" height="82" name="Performance" width="90" x="313" y="187"/>
<operator activated="true" class="extract_performance" compatibility="7.5.001" expanded="true" height="82" name="Performance (2)" width="90" x="246" y="34"/>
<connect from_port="model" to_op="Apply Model" to_port="model"/>
<connect from_port="test set" to_op="Apply Model" to_port="unlabelled data"/>
<connect from_op="Apply Model" from_port="labelled data" to_op="Performance (2)" to_port="example set"/>
<connect from_op="Performance" from_port="performance" to_port="performance 1"/>
<connect from_op="Performance" from_port="example set" to_port="test set results"/>
<portSpacing port="source_model" spacing="0"/>
<portSpacing port="source_test set" spacing="0"/>
<portSpacing port="source_through 1" spacing="0"/>
<portSpacing port="sink_test set results" spacing="0"/>
<portSpacing port="sink_performance 1" spacing="0"/>
<portSpacing port="sink_performance 2" spacing="0"/>
<connect from_op="Cross Validation" from_port="model" to_port="result 1"/>
<connect from_op="Cross Validation" from_port="example set" to_port="result 2"/>
<connect from_op="Cross Validation" from_port="test result set" to_port="result 3"/>
<connect from_op="Cross Validation" from_port="performance 1" to_port="result 4"/>
<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"/>
<portSpacing port="sink_result 4" spacing="0"/>
<portSpacing port="sink_result 5" spacing="0"/>

Best Answer

  • Options
    Pavithra_RaoPavithra_Rao Administrator, Moderator, Employee, RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 123 RM Data Scientist
    Solution Accepted


    You could place the Log operator inside the Validation subprocess instead of placing it outside. As shown in the screenshot below I have connected the log file to Performance operator. Also, I have attached my log screen output. Please try this and let me know if you are still running into the issue?


    XML you have shared seems to be not complete when I ran the process in my Studio. Could you please cross check and reshare the XML code. I can take a look at it.


    Thanks and Regards,







  • Options
    lionelderkrikorlionelderkrikor Moderator, RapidMiner Certified Analyst, Member Posts: 1,195 Unicorn

    Hi  @Pavithra_Rao 


    I had a similar problem with an optimization process relative to a decision tree.

    Your solution work bell in my case.


    So thank you for your solution.







Sign In or Register to comment.