class_docstr: Test class for custom learner tests.
class_docstr_tok: ["Test","class","for","custom","learner","tests","."]
docstr: Read in prediction file as a numpy array.
docstr_tok: ["Read","in","prediction","file","as","a","numpy","array","."]
code: def read_predictions(self, path):
      """Read in prediction file as a numpy array."""
      with open(path) as f:
          reader = csv.reader(f, dialect="excel-tab")
          next(reader)
          res = np.array([float(x[1]) for x in reader])
      return res
  
file_path: skll/tests/test_custom_learner.py
imports: import csv
  import unittest
  from itertools import chain
  import numpy
  from numpy.testing import assert_array_equal
  from skll.data import NDJWriter
  from skll.experiments import run_configuration
  from skll.learner import Learner
  from skll.utils.testing import config_dir, fill_in_config_paths, make_classification_data, other_dir, output_dir, test_dir, train_dir, unlink
label_desc: Use image node_id 3 for calling the TestCustomLearner obj's underlying member method code with example usage: obj.read_predictions(path) and returns: res