summaryrefslogtreecommitdiff
path: root/report/report_factory.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-01-15 10:36:18 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-01-15 10:36:18 +0100
commitdc5a64cf91eff9011cdcdcd028e2bc19c1a3bd13 (patch)
treee26bf1089344ebf1b3166392746190ba5fd33a7c /report/report_factory.rb
parente65b7f04ce114affd6f1a3318c938f6a19fa1451 (diff)
minor changes, simply validation access initialization
Diffstat (limited to 'report/report_factory.rb')
-rw-r--r--report/report_factory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/report/report_factory.rb b/report/report_factory.rb
index 2d7de03..b13624f 100644
--- a/report/report_factory.rb
+++ b/report/report_factory.rb
@@ -49,7 +49,7 @@ module Reports::ReportFactory
report = Reports::ReportContent.new("Validation report")
- if (val.percent_correct != nil) #classification
+ if (val.classification?)
report.add_section_result(validation_set, VAL_ATTR_TRAIN_TEST + VAL_ATTR_CLASS, "Results", "Results")
val.get_prediction_feature_values.each do |class_value|
report.add_section_roc_plot(validation_set, class_value, nil, "roc-plot-"+class_value+".svg")
@@ -199,7 +199,7 @@ class Reports::ReportContent
vals = validation_set.to_array(validation_attributes)
#PENDING rexml strings in tables not working when >66
vals = vals.collect{|a| a.collect{|v| v.to_s[0,66] }}
- #transpose values if there more than 4 columns, and there are more than columns than rows
+ #PENDING transpose values if there more than 4 columns, and there are more than columns than rows
transpose = vals[0].size>4 && vals[0].size>vals.size
@xml_report.add_table(section_table, table_title, vals, !transpose, transpose)
end