docstr: Test imodels on basic binary classification task
docstr_tok: ["Test","imodels","on","basic","binary","classification","task"]
code: def test_regression(self):
      """Test imodels on basic binary classification task"""
      for model_type in [
          RuleFitRegressor,
          SLIMRegressor,
          GreedyTreeRegressor,
          FIGSRegressor,  # TaoTreeRegressor,
          BoostedRulesRegressor,
          partial(
              DistilledRegressor,
              teacher=RandomForestRegressor(n_estimators=3),
              student=DecisionTreeRegressor(),
          ),
          TreeGAMRegressor,
          MarginalShrinkageLinearModelRegressor,
      ]:
          if model_type == RuleFitRegressor:
              m = model_type(include_linear=False, max_rules=3)
          else:
              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"
  
file_path: imodels/tests/regression_test.py
imports: from functools import partial
  import numpy
  import pytest
  from sklearn.ensemble import RandomForestRegressor
  from sklearn.tree import DecisionTreeRegressor
  from imodels import RuleFitRegressor, SLIMRegressor, GreedyTreeRegressor, HSTreeRegressor, HSTreeRegressorCV, FIGSRegressor, DistilledRegressor, TaoTreeRegressor, BoostedRulesRegressor, TreeGAMRegressor, MarginalShrinkageLinearModelRegressor
label_desc: Use image node_id 2 for calling the TestClassRegression obj's underlying member method code with example usage: obj.test_regression() without return types