summaryrefslogtreecommitdiff
path: root/report/report_content.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-05-12 12:45:18 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-12 12:45:18 +0200
commitc858faa20607125097a3ca36f9178c4b4076b071 (patch)
tree358baf64e55162f9abd30f1833ccc56ebaab0603 /report/report_content.rb
parenta730ae5a2a34ece618ae7b66c50b0d5aca7c9120 (diff)
move to ruby-plot 0.0.3, use png instead of svg, use ?media for compound images
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-xreport/report_content.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/report/report_content.rb b/report/report_content.rb
index 674bb13..1e47cee 100755
--- a/report/report_content.rb
+++ b/report/report_content.rb
@@ -155,12 +155,12 @@ class Reports::ReportContent
section_text += "\nWARNING: regression plot information not available for all validation results" if prediction_set.size!=validation_set.size
@xml_report.add_paragraph(section_regr, section_text) if section_text
- plot_file_name = "regr_plot"+@tmp_file_count.to_s+".svg"
+ plot_file_name = "regr_plot"+@tmp_file_count.to_s+".png"
@tmp_file_count += 1
begin
plot_file_path = add_tmp_file(plot_file_name)
Reports::PlotFactory.create_regression_plot( plot_file_path, prediction_set, name_attribute )
- @xml_report.add_imagefigure(section_regr, image_title, plot_file_name, "SVG", 120, image_caption)
+ @xml_report.add_imagefigure(section_regr, image_title, plot_file_name, "PNG", 100, image_caption)
rescue RuntimeError => ex
LOGGER.error("Could not create regression plot: "+ex.message)
rm_tmp_file(plot_file_name)
@@ -194,12 +194,12 @@ class Reports::ReportContent
class_value = accept_values[i]
image_title = image_titles ? image_titles[i] : "ROC Plot for class-value '"+class_value.to_s+"'"
image_caption = image_captions ? image_captions[i] : nil
- plot_file_name = "roc_plot"+@tmp_file_count.to_s+".svg"
+ plot_file_name = "roc_plot"+@tmp_file_count.to_s+".png"
@tmp_file_count += 1
begin
plot_file_path = add_tmp_file(plot_file_name)
Reports::PlotFactory.create_roc_plot( plot_file_path, prediction_set, class_value, split_set_attribute, false )#prediction_set.size>1 )
- @xml_report.add_imagefigure(section_roc, image_title, plot_file_name, "SVG", 120, image_caption)
+ @xml_report.add_imagefigure(section_roc, image_title, plot_file_name, "PNG", 100, image_caption)
rescue RuntimeError => ex
msg = "WARNING could not create roc plot for class value '"+class_value.to_s+"': "+ex.message
LOGGER.error(msg)
@@ -270,11 +270,11 @@ class Reports::ReportContent
section_bar = @xml_report.add_section(@current_section, section_title)
@xml_report.add_paragraph(section_bar, section_text) if section_text
- plot_file_name = "bar_plot"+@tmp_file_count.to_s+".svg"
+ plot_file_name = "bar_plot"+@tmp_file_count.to_s+".png"
@tmp_file_count += 1
plot_file_path = add_tmp_file(plot_file_name)
Reports::PlotFactory.create_bar_plot(plot_file_path, validation_set, title_attribute, value_attributes )
- @xml_report.add_imagefigure(section_bar, image_title, plot_file_name, "SVG", 120, image_caption)
+ @xml_report.add_imagefigure(section_bar, image_title, plot_file_name, "PNG", 100, image_caption)
end
private