class_docstr: Test class for preprocessing tests.
docstr: Test class maps.
docstr_tok: ["Test","class","maps","."]
code: def test_class_map(self):
      """Test class maps."""
      self.make_class_map_data()
  
      config_template_path = config_dir / "test_class_map.template.cfg"
      config_path = fill_in_config_paths(config_template_path)
  
      run_configuration(config_path, quiet=True, local=True)
  
      with open(
          output_dir
          / "test_class_map_test_class_map_LogisticRegression.results"
          ".json"
      ) as f:
          outd = json.loads(f.read())
          logistic_result_score = outd[0]["accuracy"]
  
      assert_almost_equal(logistic_result_score, 0.5)
  
imports: import json
  import os
  import re
  import unittest
  import numpy
  import scipy.sparse
  from numpy.testing import assert_almost_equal, assert_array_equal
  from sklearn.datasets import make_classification
  from sklearn.feature_extraction import FeatureHasher
  from skll.data import FeatureSet, NDJWriter
  from skll.experiments import run_configuration
  from skll.learner import Learner
  from skll.learner.utils import SelectByMinCount
  from skll.utils.testing import config_dir, fill_in_config_paths, output_dir, test_dir, train_dir, unlink
label_desc: Use image node_id 5 for calling the TestPreprocessing obj's underlying member method code with example usage: obj.test_class_map() without return types