# File lib/ai4r/classifiers/hyperpipes.rb, line 45
      def eval(data)
        votes = Hash.new {0}
        @pipes.each do |category, pipe|
          pipe.each_with_index do |bounds, i|
            if data[i].is_a? Numeric
              votes[category]+=1 if data[i]>=bounds[:min] && data[i]<=bounds[:max]
            else
              votes[category]+=1 if bounds[data[i]]
            end
          end
        end
        return votes.to_a.max {|x, y| x.last <=> y.last}.first
      end