summaryrefslogtreecommitdiff
path: root/lib/merge.rb
diff options
context:
space:
mode:
authorMartin Gütlein <martin.guetlein@gmail.com>2010-03-23 14:07:14 +0100
committerMartin Gütlein <martin.guetlein@gmail.com>2010-03-23 14:07:14 +0100
commit14d2a68564061d63166cd409bf4fd30dc841d2b8 (patch)
treee07cbc10883ee8c116caa443048df0471efe02b2 /lib/merge.rb
parent6a5ebb67493ab2c30121ae26fb75d6a24c36eafc (diff)
added predictedValues feature, some report changes (true feature prediction class), some hacks to validate IDEA/AMBIT
Diffstat (limited to 'lib/merge.rb')
-rw-r--r--lib/merge.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/merge.rb b/lib/merge.rb
index b42df1e..7e05cd8 100644
--- a/lib/merge.rb
+++ b/lib/merge.rb
@@ -28,6 +28,10 @@ module Lib
return m
end
+ def self.merged?(object)
+ return merge_count(object)>1
+ end
+
def self.merge_objects( object1, object2 )
raise "classes not equal" if object1.class != object2.class
@@ -51,7 +55,7 @@ module Lib
end
def self.register_merge_attributes( object_class, avg_attributes, sum_attributes, non_numeric_attributes)
- @@avg_attributes[object_class] = avg_attributes
+ @@avg_attributes[object_class] = avg_attributes + avg_attributes.collect{ |a| (a.to_s+"_ranking").to_sym }
@@sum_attributes[object_class] = sum_attributes
@@non_numeric_attributes[object_class] = non_numeric_attributes
end