diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-06-07 14:09:43 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-06-07 14:09:43 +0200 |
commit | fd6cccaecc235bfe334fd54b79f02e2083dc89a9 (patch) | |
tree | 188895a5ba743bfd321d914b399bf90124734057 /lib/predictions.rb | |
parent | edfa159a81f02f3bfbbd5108ff3494369133e072 (diff) |
add regression plot, rescue not found errors, ..
Diffstat (limited to 'lib/predictions.rb')
-rw-r--r-- | lib/predictions.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/predictions.rb b/lib/predictions.rb index c01dcdc..a183534 100644 --- a/lib/predictions.rb +++ b/lib/predictions.rb @@ -456,6 +456,10 @@ module Lib def num_instances return @predicted_values.size end + + def predicted_values + @predicted_values + end def predicted_value(instance_index) if @is_classification @@ -465,6 +469,10 @@ module Lib end end + def actual_values + @actual_values + end + def actual_value(instance_index) if @is_classification @actual_values[instance_index]==nil ? nil : @prediction_feature_values[@actual_values[instance_index]] |