The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Exporting Tree Image
DancingSheep
Member Posts: 9 Contributor II
Hello,
I have a process that in the end results in a big decision tree. I'd like to export this picture to be printed on an A4 paper, but the "Save Image" function of RapidMiner just prints whatever part of the tree is visualized at the moment and not the whole.
How do I save the full picture at a nice resolution?
I have a process that in the end results in a big decision tree. I'd like to export this picture to be printed on an A4 paper, but the "Save Image" function of RapidMiner just prints whatever part of the tree is visualized at the moment and not the whole.
How do I save the full picture at a nice resolution?
0
Best Answer
-
Marco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM EngineeringHi,
you can do that with the reporting extension. Just play around with the settings until you're satisfied.
I created an example process:
Regards,
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<process version="5.1.008">
<context>
<input/>
<output/>
<macros/>
</context>
<operator activated="true" class="process" compatibility="5.1.008" expanded="true" name="Root">
<process expanded="true" height="584" width="815">
<operator activated="true" class="retrieve" compatibility="5.1.008" expanded="true" height="60" name="Retrieve" width="90" x="45" y="30">
<parameter key="repository_entry" value="//Samples/data/Golf"/>
</operator>
<operator activated="true" class="decision_tree" compatibility="5.1.008" expanded="true" height="76" name="DecisionTree" width="90" x="179" y="30"/>
<operator activated="true" class="reporting:generate_report" compatibility="5.0.002" expanded="true" height="76" name="Generate Report" width="90" x="313" y="30">
<parameter key="report_name" value="Hello Report!"/>
<parameter key="format" value="HTML"/>
<parameter key="repository_entry" value="//LocalRepository/t"/>
<parameter key="html_output_directory" value="C:\Users\username\Desktop"/>
<parameter key="pdf_output_file" value="C:\Users\username\Desktop\report.pdf"/>
<parameter key="pdf_template_file" value="no file selected"/>
<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>
<operator activated="true" class="reporting:report" compatibility="5.0.002" expanded="true" height="60" name="Report" width="90" x="447" y="30">
<parameter key="report_name" value="Hello Report!"/>
<parameter key="report_item_header" value="Decision Tree Image"/>
<parameter key="specified" value="true"/>
<parameter key="reportable_type" value="Decision Tree"/>
<parameter key="renderer_name" value="Graph View"/>
<list key="parameters">
<parameter key="layout" value="Tree"/>
<parameter key="show_node_labels" value="true"/>
<parameter key="show_edge_labels" value="true"/>
</list>
</operator>
<connect from_op="Retrieve" from_port="output" to_op="DecisionTree" to_port="training set"/>
<connect from_op="DecisionTree" from_port="model" to_op="Generate Report" to_port="through 1"/>
<connect from_op="Generate Report" from_port="through 1" to_op="Report" to_port="reportable in"/>
<connect from_op="Report" from_port="reportable out" 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>
Marco0
Answers
For my master theesis I work with Rapidminer and I am pretty happy with it.
But there is one question left. Is it possible to change the background color of an exported disicion tree?
Every change endet in no result. I always get the tree image whith a white background.
It would be nice if you can give me a short answer.
Thank you very much.
no that is not possible. However I'm sure that almost every graphics software available is capable of doing so
Regards,
Marco
Hi,
Could you plaese help me to export the full image of decision tree. I have installed the reporting extension. But then how does it help to export the full image of Decision tree ?
Thanks