summaryrefslogtreecommitdiff
path: root/report/report_factory.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-08-04 11:01:20 +0200
committermguetlein <martin.guetlein@gmail.com>2010-08-04 11:01:20 +0200
commit148e4eaccf2e406586914150cf2f953fa5f12ece (patch)
tree00e028b23b5947b3708cb992f5492758537ca382 /report/report_factory.rb
parentad376b7c5c3bb5c4270c78c5dd342436eb5dcdb9 (diff)
add new /predictions funcionality
Diffstat (limited to 'report/report_factory.rb')
-rw-r--r--report/report_factory.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/report/report_factory.rb b/report/report_factory.rb
index 646ecfd..b62f919 100644
--- a/report/report_factory.rb
+++ b/report/report_factory.rb
@@ -101,7 +101,7 @@ module Reports::ReportFactory
end
report.add_section_result(validation_set, Lib::ALL_PROPS, "All Results", "All Results")
- report.add_section_predictions( validation_set, [:crossvalidation_fold] )
+ report.add_section_predictions( validation_set ) #, [:crossvalidation_fold] )
return report
end
@@ -241,11 +241,14 @@ class Reports::ReportContent
section_title="Predictions",
section_text="This section contains predictions.",
table_title="Predictions")
-
+
+ #PENING
+ raise "validation attributes not implemented in get prediction array" if validation_attributes.size>0
+
section_table = @xml_report.add_section(@xml_report.get_root_element, section_title)
if validation_set.validations[0].get_predictions
@xml_report.add_paragraph(section_table, section_text) if section_text
- @xml_report.add_table(section_table, table_title, Reports::PredictionUtil.predictions_to_array(validation_set, validation_attributes))
+ @xml_report.add_table(section_table, table_title, Lib::OTPredictions.to_array(validation_set.validations.collect{|v| v.get_predictions}, true, true))
else
@xml_report.add_paragraph(section_table, "No prediction info available.")
end