class_docstr: Unit tests for all quick-start examples.
class_docstr_tok: ["Unit","tests","for","all","quick-start","examples","."]
docstr: Get the predictions and prediction confidences for all examples.
docstr_tok: ["Get","the","predictions","and","prediction","confidences","for","all","examples","."]
code: def setUpClass(cls):
      """Get the predictions and prediction confidences for all examples."""
      for example in cls.examples:
          predictionGenerator = _getPredictionsGenerator(
              cls.examplesDir, example
          )
          for prediction in predictionGenerator(MAX_PREDICTIONS):
              cls.oneStepPredictions[example].append(prediction[0])
              cls.oneStepConfidences[example].append(prediction[1])
              cls.fiveStepPredictions[example].append(prediction[2])
              cls.fiveStepConfidences[example].append(prediction[3])
  
file_path: nupic-legacy/tests/unit/nupic/docs/examples_test.py
imports: import os
  import sys
  import unittest2
  import numpy
  from numpy.testing import assert_approx_equal
  import random
label_desc: Use image node_id 1 for calling the ExamplesTest obj's underlying member method code with example usage: obj.setUpClass(cls) without return types