diff options
author | mguetlein <martin.guetlein@gmail.com> | 2011-08-18 12:57:33 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2011-08-18 12:57:33 +0200 |
commit | bad2d7444ab40a59770678c0b0e4057d5edeceef (patch) | |
tree | 1de89743e3d1a92b220295a86f951969afdea661 /report/report_content.rb | |
parent | 32f9e3f97c1a8278cf5022f619d9e969a37fed38 (diff) |
add confidence plots for various classification stats
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-x | report/report_content.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/report/report_content.rb b/report/report_content.rb index 9c33038..8d6d44b 100755 --- a/report/report_content.rb +++ b/report/report_content.rb @@ -213,9 +213,10 @@ class Reports::ReportContent end def add_confidence_plot( validation_set, - accept_value = nil, + actual_accept_value = nil, + predicted_accept_value = nil, split_set_attribute = nil, - image_title = "Percent Correct vs Confidence Plot", + image_title = "Confidence Plot", section_text="") #section_conf = @xml_report.add_section(@current_section, section_title) @@ -233,7 +234,7 @@ class Reports::ReportContent begin plot_png = add_tmp_file("conf_plot", "png") plot_svg = add_tmp_file("conf_plot", "svg") - Reports::PlotFactory.create_confidence_plot( [plot_png[:path], plot_svg[:path]], prediction_set, accept_value, split_set_attribute, false ) + Reports::PlotFactory.create_confidence_plot( [plot_png[:path], plot_svg[:path]], prediction_set, actual_accept_value, predicted_accept_value, split_set_attribute, false ) @xml_report.add_imagefigure(section_conf, image_title, plot_png[:name], "PNG", 100, plot_svg[:name]) rescue Exception => ex msg = "WARNING could not create confidence plot: "+ex.message |