class_docstr: Tests simple classification for different models. Note: still doesn't test all the models!
      
class_docstr_tok: ["Tests","simple","classification","for","different","models",".","Note",":","still","does","n't","test","all","the","models","!"]
code: def setup(self):
      np.random.seed(13)
      random.seed(13)
      self.n = 20
      self.p = 2
      self.X_classification_binary = (
          np.random.randn(self.n, self.p) > 0
      ).astype(int)
  
      # y = x0 > 0
      self.y_classification_binary = (
          self.X_classification_binary[:, 0] > 0
      ).astype(int)
  
      # flip labels for last few
      self.y_classification_binary[-2:] = (
          1 - self.y_classification_binary[-2:]
      )
      self.X_regression = np.random.randn(self.n, self.p)
      self.y_regression = (
          self.X_regression[:, 0] + np.random.randn(self.n) * 0.01
      )
  
file_path: imodels/tests/shrinkage_test.py
imports: import random
  from functools import partial
  import numpy
  from sklearn.ensemble import VotingRegressor, RandomForestClassifier, GradientBoostingClassifier
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from imodels import HSTreeClassifier, HSTreeClassifierCV, HSTreeRegressor, HSTreeRegressorCV, C45TreeClassifier
  from imodels.tree.c45_tree.c45_tree import HSC45TreeClassifierCV
  import random
  from functools import partial
  import numpy
  from sklearn.ensemble import VotingRegressor
  from sklearn.tree import DecisionTreeClassifier, DecisionTreeRegressor
  from imodels import HSTreeClassifier, HSTreeClassifierCV, HSTreeRegressor, HSTreeRegressorCV, C45TreeClassifier
  from imodels.tree.c45_tree.c45_tree import HSC45TreeClassifierCV
label_desc: Use image node_id 1 for calling the TestShrinkage obj's underlying member method code with example usage: obj.setup() without return types