🦉🦉   WOOT WOOT!   RAPIDMINER WISDOM 2020 EARLY BIRD REGISTRATION ENDS FRIDAY DEC 13!   REGISTER NOW!   🦉🦉

Reporting Example?

holgerholger Member Posts: 42  Maven
edited November 2018 in Help
Hi,

I've tried to work with the reporting extension, but it didn't work. I just retrieved some data from a rm-repository, connected it to a report-operator and connected the latter to a "generate report"-operator. Here's the process definition:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.0">
  <context>
    <input>
      <location/>
    </input>
    <output>
      <location/>
    </output>
    <macros/>
  </context>
  <operator activated="true" class="process" expanded="true" name="Process">
    <process expanded="true" height="692" width="961">
      <operator activated="true" class="retrieve" expanded="true" height="60" name="Retrieve" width="90" x="112" y="390">
        <parameter key="repository_entry" value="wellfields"/>
      </operator>
      <operator activated="true" class="reporting:report" expanded="true" height="60" name="Report" width="90" x="246" y="390">
        <parameter key="report_name" value="test-report"/>
        <parameter key="report_item_header" value="test-header"/>
        <parameter key="specified" value="true"/>
        <parameter key="reportable_type" value="Data Table"/>
        <parameter key="renderer_name" value="Meta Data View"/>
        <list key="parameters">
          <parameter key="attribute_filter_type" value="all"/>
          <parameter key="use_except_expression" value="false"/>
          <parameter key="value_type" value="attribute_value"/>
          <parameter key="use_value_type_exception" value="false"/>
          <parameter key="except_value_type" value="time"/>
          <parameter key="block_type" value="attribute_block"/>
          <parameter key="use_block_type_exception" value="false"/>
          <parameter key="except_block_type" value="value_matrix_row_start"/>
          <parameter key="invert_selection" value="false"/>
          <parameter key="include_special_attributes" value="false"/>
          <parameter key="show_role" value="true"/>
          <parameter key="show_table_index" value="true"/>
          <parameter key="show_name" value="true"/>
          <parameter key="show_construction" value="true"/>
          <parameter key="show_type" value="true"/>
          <parameter key="show_block" value="true"/>
          <parameter key="show_statistics" value="true"/>
          <parameter key="show_range" value="true"/>
          <parameter key="show_sum" value="true"/>
          <parameter key="show_missings" value="true"/>
        </list>
      </operator>
      <operator activated="true" class="reporting:generate_report" expanded="true" height="76" name="Generate Report" width="90" x="380" y="390">
        <parameter key="report_name" value="test"/>
        <parameter key="format" value="PDF"/>
        <parameter key="pdf_output_file" value="test.pdf"/>
        <parameter key="pdf_template_file" value="/Users/brandl/tdst.pdf"/>
        <parameter key="image_template_file" value="no file selected"/>
        <parameter key="section_one_font" value="courier"/>
        <parameter key="section_two_font" value="courier"/>
        <parameter key="section_three_font" value="courier"/>
        <parameter key="section_four_font" value="courier"/>
        <parameter key="section_five_font" value="courier"/>
        <parameter key="text_content_font" value="courier"/>
      </operator>
      <connect from_op="Retrieve" from_port="output" to_op="Report" to_port="reportable in"/>
      <connect from_op="Report" from_port="reportable out" to_op="Generate Report" to_port="through 1"/>
      <portSpacing port="source_input 1" spacing="0"/>
      <portSpacing port="sink_result 1" spacing="0"/>
    </process>
  </operator>
</process>
However, when I run this basic process, I get the following error:
"No report was specified for this reporting operator."

What is wrong with my setup?

Best, Holger

Answers

  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,529   Unicorn
    Hi,
    before one can add something to the report using the Report operator, you have to open a report using the Generate Report operator.
    The name's really misleading, don't know why we have overseen it when we renamed the others.
    Sorry for the inconvenience.

    Greetings,
      Sebastian
  • holgerholger Member Posts: 42  Maven
    Thanks for your answer.

    Does this mean, that I have to connect all the examplesets which I would like to include into a report to the "Generate report" operator? How are inputs to it associated to "Report"-operators (which I assume to be connected to the outputs of the "Generate Report"-op)?

    It seems ways more natural to me to connect data-sets to report-operators, which are consumed by a "generate report" node (which doesn't need any outgoing connections).

    Where can I find any examples/documentation? Are the reporting operators already used in production, or are they still under development?

    -Holger
  • landland RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 2,529   Unicorn
    Hi,
    the reporting operators have been part of the Enterprise Edition for over a year now. That's the main reason, why we didn't change the behavior to be more 5.0 like: We couldn't break with compatibility for people paying us.
    And no, the Report Generator just opens a Stream that's accessed by the subsequent Report operators via its name. To report things, you simply have to open a report using the Generator and add parts by the Report operator.

    Unfortunately there are no samples right now.

    Greetings,
      Sebastian
Sign In or Register to comment.