summaryrefslogtreecommitdiff
path: root/report/plot_factory.rb
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2010-05-18 12:09:05 +0200
committermguetlein <martin.guetlein@gmail.com>2010-05-18 12:09:05 +0200
commit0522e88ac854e573916653cba92a76f1faa47191 (patch)
tree966454d3619c8e21b7d977e28347f42a33d3eeb9 /report/plot_factory.rb
parent6894b1ca551a8a1d430a3212311e7fe8cadc03b3 (diff)
some report design changes, reload when creating validation
Diffstat (limited to 'report/plot_factory.rb')
-rw-r--r--report/plot_factory.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/report/plot_factory.rb b/report/plot_factory.rb
index c5ea59f..e1fefeb 100644
--- a/report/plot_factory.rb
+++ b/report/plot_factory.rb
@@ -35,7 +35,7 @@ module Reports
tp_rates = []
attribute_values.each do |value|
data = transform_predictions(validation_set.filter({split_set_attribute => value}), class_value, false)
- names << value
+ names << value.to_s
fp_rates << data[:fp_rate][0]
tp_rates << data[:tp_rate][0]
end
@@ -169,7 +169,7 @@ module Reports
end
end
tp_fp_rates = get_tp_fp_rates(sum_roc_values)
- names << "all"
+ names << nil # "all"
fp_rate << tp_fp_rates[:fp_rate]
tp_rate << tp_fp_rates[:tp_rate]
faint << false