docstr: Update test.results (run tests) for every test, from a prediction file
  
  Parameters
  ----------
  path : string
      prediction file path
  file_format : string
      None, or one of 'pred_only', 'softmax', binary_conf', 'pred_and_conf', 'pred_and_softmax', 'squad',
      pred_only: each line has a prediction
      softmax: each line has prediction probabilities separated by spaces
      binary_conf: each line has the prediction probability of class 1 (binary)
      pred_and_conf: each line has a prediction and a confidence value, separated by a space
      pred_and_softmax: each line has a prediction and all softmax probabilities, separated by a space
      squad: TODO
  format_fn : function
      If not None, function that reads a line in the input file and outputs a tuple of (prediction, confidence)
  ignore_header : bool
      If True, skip first line in the file
  overwrite : bool
      If False, raise exception if results already exist
docstr_tok: ["Update","test.results","(","run","tests",")","for","every","test",",","from","a","prediction","file","Parameters","--","--","--","--","--","path",":","string","prediction","file","path","file_format",":","string","None",",","or","one","of","'pred_only","'",",","'softmax","'",",","binary_conf","'",",","'pred_and_conf","'",",","'pred_and_softmax","'",",","'squad","'",",","pred_only",":","each","line","has","a","prediction","softmax",":","each","line","has","prediction","probabilities","separated","by","spaces","binary_conf",":","each","line","has","the","prediction","probability","of","class","1","(","binary",")","pred_and_conf",":","each","line","has","a","prediction","and","a","confidence","value",",","separated","by","a","space","pred_and_softmax",":","each","line","has","a","prediction","and","all","softmax","probabilities",",","separated","by","a","space","squad",":","TODO","format_fn",":","function","If","not","None",",","function","that","reads","a","line","in","the","input","file","and","outputs","a","tuple","of","(","prediction",",","confidence",")","ignore_header",":","bool","If","True",",","skip","first","line","in","the","file","overwrite",":","bool","If","False",",","raise","exception","if","results","already","exist"]
code: def run_from_file(
      self,
      path,
      file_format=None,
      format_fn=None,
      ignore_header=False,
      overwrite=False,
  ):
      """Update test.results (run tests) for every test, from a prediction file
  
      Parameters
      ----------
      path : string
          prediction file path
      file_format : string
          None, or one of 'pred_only', 'softmax', binary_conf', 'pred_and_conf', 'pred_and_softmax', 'squad',
          pred_only: each line has a prediction
          softmax: each line has prediction probabilities separated by spaces
          binary_conf: each line has the prediction probability of class 1 (binary)
          pred_and_conf: each line has a prediction and a confidence value, separated by a space
          pred_and_softmax: each line has a prediction and all softmax probabilities, separated by a space
          squad: TODO
      format_fn : function
          If not None, function that reads a line in the input file and outputs a tuple of (prediction, confidence)
      ignore_header : bool
          If True, skip first line in the file
      overwrite : bool
          If False, raise exception if results already exist
  
      """
      preds, confs = read_pred_file(
          path,
          file_format=file_format,
          format_fn=format_fn,
          ignore_header=ignore_header,
      )
      self.run_from_preds_confs(preds, confs, overwrite=overwrite)
  
imports: import collections
  from collections import defaultdict, OrderedDict
  import dill
  import json
  from .abstract_test import load_test, read_pred_file
  from .test_types import MFT, INV, DIR
  from .viewer.suite_summarizer import SuiteSummarizer
label_desc: Use image node_id 11 for calling the TestSuite obj's underlying member method code with example usage: obj.run_from_file(path, file_format, format_fn, ignore_header, overwrite) without return types