summaryrefslogtreecommitdiff
path: root/report/report_content.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-05-17 10:46:45 +0200
committermguetlein <martin.guetlein@gmail.com>2011-05-17 10:46:45 +0200
commit9ce03c0f50bb9129b584327d56fa4c9277849227 (patch)
tree8c0213ec8e3e5ac2ca918ab03a78c6fa99f2fcdc /report/report_content.rb
parenteb5f8b5da9b247d62abc8a7b9eb2e44fe46a1c79 (diff)
crossvalidation statistics fix: compute cv-statistics with cv-predictions instead of averaging cv-validation-statistics
Diffstat (limited to 'report/report_content.rb')
-rwxr-xr-xreport/report_content.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/report/report_content.rb b/report/report_content.rb
index ca04f25..cc4c13c 100755
--- a/report/report_content.rb
+++ b/report/report_content.rb
@@ -31,11 +31,11 @@ class Reports::ReportContent
level = 0.90
test_matrix = Reports::ReportStatisticalTest.test_matrix( validation_set.validations,
group_attribute, test_attribute, "paired_ttest", level )
- puts test_matrix.inspect
+ #puts test_matrix.inspect
titles = test_matrix[:titles]
matrix = test_matrix[:matrix]
table = []
- puts titles.inspect
+ #puts titles.inspect
table << [""] + titles
titles.size.times do |i|
table << [titles[i]] + matrix[i].collect{|v| (v==nil || v==0) ? "" : (v<0 ? "-" : "+") }
@@ -47,10 +47,10 @@ class Reports::ReportContent
end
def add_predictions( validation_set,
- validation_attributes=[],
- section_title="Predictions",
- section_text=nil,
- table_title="Predictions")
+ validation_attributes=[],
+ section_title="Predictions",
+ section_text=nil,
+ table_title="Predictions")
#PENING
raise "validation attributes not implemented in get prediction array" if validation_attributes.size>0
@@ -109,7 +109,7 @@ class Reports::ReportContent
if (search_for_existing_report_type)
vals.size.times do |i|
- puts i
+ #puts i
if (i==0)
vals[i] = [ "Reports" ] + vals[i]
puts vals[i].inspect