code: def test_Lasso_Path(self):
      diabetes = datasets.load_diabetes()
      X = diabetes.data
      y = diabetes.target
      X /= X.std(axis=0)
  
      df = pdml.ModelFrame(diabetes)
      df.data /= df.data.std(axis=0, ddof=False)
  
      self.assert_numpy_array_almost_equal(df.data.values, X)
  
      eps = 5e-3
      expected = lm.lasso_path(X, y, eps, fit_intercept=False)
      result = df.lm.lasso_path(eps=eps, fit_intercept=False)
      self.assert_numpy_array_almost_equal(expected[0], result[0])
      self.assert_numpy_array_almost_equal(expected[1], result[1])
      self.assert_numpy_array_almost_equal(expected[2], result[2])
  
      expected = lm.enet_path(
          X, y, eps=eps, l1_ratio=0.8, fit_intercept=False
      )
      result = df.lm.enet_path(
          eps=eps, l1_ratio=0.8, fit_intercept=False
      )
      self.assert_numpy_array_almost_equal(expected[0], result[0])
      self.assert_numpy_array_almost_equal(expected[1], result[1])
      self.assert_numpy_array_almost_equal(expected[2], result[2])
  
      expected = lm.enet_path(
          X,
          y,
          eps=eps,
          l1_ratio=0.8,
          positive=True,
          fit_intercept=False,
      )
      result = df.lm.enet_path(
          eps=eps, l1_ratio=0.8, positive=True, fit_intercept=False
      )
      self.assert_numpy_array_almost_equal(expected[0], result[0])
      self.assert_numpy_array_almost_equal(expected[1], result[1])
      self.assert_numpy_array_almost_equal(expected[2], result[2])
  
      expected = lm.lars_path(X, y, method="lasso", verbose=True)
      result = df.lm.lars_path(method="lasso", verbose=True)
      self.assert_numpy_array_almost_equal(expected[0], result[0])
      self.assert_numpy_array_almost_equal(expected[1], result[1])
      self.assert_numpy_array_almost_equal(expected[2], result[2])
  
file_path: pandas-ml/pandas_ml/skaccessors/test/test_linear_model.py
imports: import pytest
  import sklearn.datasets
  import sklearn.linear_model
  import sklearn.preprocessing
  import pandas_ml
  import pandas_ml.util.testing
label_desc: Use image node_id 8 for calling the TestLinearModel obj's underlying member method code with example usage: obj.test_Lasso_Path() without return types