code: def test_simple_linear_regression(self) -> None:
      xs = torch.randn(TestLinearModel.MAX_POINTS, 1)
      ys = 3 * xs + 1
  
      self.train_and_compare(
          SGDLinearRegression,
          xs,
          ys,
          expected_loss=0,
          expected_reg=0,
          objective="ols",
      )
      self.train_and_compare(
          SGDLasso,
          xs,
          ys,
          expected_loss=3,
          expected_reg=0,
          objective="lasso",
          delta=0.2,
      )
      self.train_and_compare(
          SGDRidge,
          xs,
          ys,
          expected_loss=3,
          expected_reg=0,
          objective="ridge",
          delta=0.2,
      )
  
file_path: captum/tests/utils/test_linear_model.py
imports: import torch
  from captum._utils.models.linear_model.model import SGDLasso, SGDLinearRegression, SGDRidge
  from tests.helpers.basic import assertTensorAlmostEqual, BaseTest
label_desc: Use image node_id 2 for calling the TestLinearModel obj's underlying member method code with example usage: obj.test_simple_linear_regression() without return types