class_docstr: Class for getting data.
class_docstr_tok: ["Class","for","getting","data","."]
docstr: Get estimators, preprocessing, num_ests, predict attr to use.
code: def _set_up_est(self, y):
      """Get estimators, preprocessing, num_ests, predict attr to use."""
      attr = "predict_proba" if self.proba else "predict"
      labels = len(np.unique(y)) if self.proba else 1
  
      if self.preprocessing:
          if self.lr:
              est = OLS() if not self.proba else LogisticRegression()
              ests = {"sc": [("est", est)]}
              prep = {"sc": [("scale", Scale())]}
          else:
              ests = ESTIMATORS_PROBA if self.proba else ESTIMATORS
              prep = PREPROCESSING
  
          n_ests = 0
          for case in ests:
              for _ in ests[case]:
                  n_ests += 1
  
      else:
          if self.lr:
              est = OLS() if not self.proba else LogisticRegression()
              ests = {"no-case": [("ols", est)]}
          else:
              ests = {"no-case": ECM_PROBA if self.proba else ECM}
          prep = {"no-case": []}
  
          n_ests = len(ests["no-case"])
  
      self.classes_ = labels
      self.n_pred = n_ests
      if self.cls == "subsemble":
          self.n_pred *= self.indexer.partitions
  
      return ests, prep, n_ests, attr, labels
  
imports: from __future__ import division, print_function, with_statement
  import os
  import shutil
  import warnings
  from abc import abstractmethod
  import numpy
  from ..utils.utils import pickle_save, pickle_load
  from ..utils.dummy import OLS, LogisticRegression, Scale
  from ..externals.sklearn.base import clone
  from ..index import INDEXERS
  from ..ensemble.base import Sequential
  from ..estimators import LayerEnsemble
  from ..parallel import ParallelProcessing, Learner, Transformer, Layer, make_group, Pipeline
label_desc: Use image node_id 4 for calling the Data obj's underlying member method code with example usage: obj._set_up_est(y) and returns: ests,  prep,  n_ests,  attr,  labels