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","!"]
docstr: Test imodels on basic binary classification task
          
docstr_tok: ["Test","imodels","on","basic","binary","classification","task"]
code: def test_regression_shrinkage(self):
      """Test imodels on basic binary classification task"""
      for model_type in [
          partial(HSTreeRegressor, estimator_=DecisionTreeRegressor()),
          partial(
              HSTreeRegressorCV, estimator_=DecisionTreeRegressor()
          ),
      ]:
          m = model_type()
          m.fit(self.X_regression, self.y_regression)
  
          preds = m.predict(self.X_regression)
          assert preds.size == self.n, "predictions are right size"
  
          mse = np.mean(np.square(preds - self.y_regression))
          assert mse < 1, "mse less than 1"
  
          # complexity
          assert m.complexity_ > 0, "complexity is greater than 0"
  
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 4 for calling the TestShrinkage obj's underlying member method code with example usage: obj.test_regression_shrinkage() without return types