# File lib/ai4r/classifiers/prism.rb, line 153 def get_condition(freq_table) best_pt = [0, 0] condition = nil freq_table.each do |attr_label, attr_freqs| attr_freqs.each do |attr_value, pt| if(better_pt(pt, best_pt)) condition = { attr_label => attr_value } best_pt = pt end end end return condition end