docstr: This function performs all initializations necessary:
  load the data sets and set the training set indices and response column index
docstr_tok: ["This","function","performs","all","initializations","necessary",":","load","the","data","sets","and","set","the","training","set","indices","and","response","column","index"]
code: def setup_data(self):
      """
      This function performs all initializations necessary:
      load the data sets and set the training set indices and response column index
      """
      self.h2o_data = h2o.import_file(
          path=pyunit_utils.locate(
              "smalldata/gam_test/synthetic_20Cols_binomial_20KRows.csv"
          )
      )
      self.h2o_data["response"] = self.h2o_data["response"].asfactor()
      self.h2o_data["C3"] = self.h2o_data["C3"].asfactor()
      self.h2o_data["C7"] = self.h2o_data["C7"].asfactor()
      self.h2o_data["C8"] = self.h2o_data["C8"].asfactor()
      self.h2o_data["C10"] = self.h2o_data["C10"].asfactor()
      names = self.h2o_data.names
      self.myY = "response"
      self.myX = names.remove(self.myY)
  
      for lambda_ in self.hyper_parameters["lambda"]:
          for subspace in self.hyper_parameters["subspaces"]:
              for scale in subspace["scale"]:
                  for gam_columns in subspace["gam_columns"]:
                      for bsVal in subspace["bs"]:
                          self.manual_model_count += 1
                          self.manual_gam_models.append(
                              H2OGeneralizedAdditiveEstimator(
                                  family="binomial",
                                  gam_columns=gam_columns,
                                  scale=scale,
                                  bs=bsVal,
                                  lambda_=lambda_,
                                  seed=1234,
                              )
                          )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/gam/pyunit_PUBDEV_7860_PUBDEV_7367_random_gridsearch_subspaces_TP_CS_binomial.py
imports: from past.utils import old_div
  import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator
  from h2o.grid.grid_search import H2OGridSearch
label_desc: Use image node_id 2 for calling the test_random_gam_gridsearch_specific obj's underlying member method code with example usage: obj.setup_data() without return types