def get_accuracy(self, condition, sub_name):
     """
     >>> d = get_simple_test_dir() + os.sep + "test_network1"
     >>> info = GetProcessedInformation(ReadReports(d))
     >>> info.get_accuracy("normal","singles") == [100.0, 100.0]
     True
     """
     precisions = self.information.get_precision(condition, sub_name)
     lists = simple_dict_to_list(precisions)
     last_list = map(lambda m: m[-1], lists)
     return avg_lists_column(last_list)
 def get_speed(self, condition, sub_name):
     """
     >>> d = get_simple_test_dir() + os.sep + "test_network1"
     >>> r = ReadReports(d)
     >>> info = GetProcessedInformation(r)
     >>> info.get_speed("normal","singles") == [4.75, 4, 5]
     True
     """
     # {'host7': 5, 'host6': 4, 'host5': 5, 'host4': 5, 'host3': 4, 'host2': 5, 'host1': 5, 'host8': 5}
     null_io = self.information.get_last_non_null_io(condition, sub_name)
     # print self.information.get_null_io(condition, sub_name)
     l = simple_dict_to_list(null_io)
     return [avg(l), min(l), max(l)]