docstr: Updates results from preds and confs
  Assumes that example_lists_and_indices or to_raw_examples or to_raw_file
  was called before, so that self.result_indexes exists
  Parameters
  ----------
  preds : list
      Predictions
  confs : list
      Confidences
  
  Updates self.results.preds and self.results.confs
docstr_tok: ["Updates","results","from","preds","and","confs","Assumes","that","example_lists_and_indices","or","to_raw_examples","or","to_raw_file","was","called","before",",","so","that","self.result_indexes","exists","Parameters","--","--","--","--","--","preds",":","list","Predictions","confs",":","list","Confidences","Updates","self.results.preds","and","self.results.confs"]
code: def update_results_from_preds(self, preds, confs):
      """Updates results from preds and confs
      Assumes that example_lists_and_indices or to_raw_examples or to_raw_file
      was called before, so that self.result_indexes exists
      Parameters
      ----------
      preds : list
          Predictions
      confs : list
          Confidences
  
      Updates self.results.preds and self.results.confs
      """
      result_indexes = self.result_indexes
      if type(self.data[0]) == list:
          self.results.preds = [[] for _ in self.data]
          self.results.confs = [[] for _ in self.data]
          for i, p, c in zip(result_indexes, preds, confs):
              self.results.preds[i].append(p)
              self.results.confs[i].append(c)
          for i in range(len(self.results.preds)):
              self.results.preds[i] = np.array(self.results.preds[i])
              self.results.confs[i] = np.array(self.results.confs[i])
      else:
          self.results.preds = [None for _ in self.data]
          self.results.confs = [None for _ in self.data]
          for i, p, c in zip(result_indexes, preds, confs):
              self.results.preds[i] = p
              self.results.confs[i] = c
  
imports: from abc import ABC, abstractmethod
  import dill
  from munch import Munch
  import numpy
  import inspect
  from .expect import iter_with_optional, Expect
  from .viewer.test_summarizer import TestSummarizer
label_desc: Use image node_id 9 for calling the AbstractTest obj's underlying member method code with example usage: obj.update_results_from_preds(preds, confs) without return types