code: def verify_on_linear_regression(self, X, Y):
      alg1 = d4p.linear_regression_training(
          interceptFlag=True, fptype="double"
      )
      res1 = alg1.compute(X, Y)
      Xc = np.ascontiguousarray(X)
      Yc = np.ascontiguousarray(Y).reshape((len(Y), 1))
      alg2 = d4p.linear_regression_training(
          interceptFlag=True, fptype="double"
      )
      res2 = alg2.compute(Xc, Yc)
      self.assertTrue(np.allclose(res1.model.Beta, res2.model.Beta))
  
file_path: scikit-learn-intelex/tests/test_df_support.py
imports: import unittest
  import numpy
  import pandas
  import daal4py
label_desc: Use image node_id 2 for calling the Test obj's underlying member method code with example usage: obj.verify_on_linear_regression(X, Y) without return types