class_docstr: Unit test class for testing scikit-learn converter.
class_docstr_tok: ["Unit","test","class","for","testing","scikit-learn","converter","."]
docstr: Set up the unit test by loading the dataset and training a model.
docstr_tok: ["Set","up","the","unit","test","by","loading","the","dataset","and","training","a","model","."]
code: def setUpClass(self):
      """
      Set up the unit test by loading the dataset and training a model.
      """
      from sklearn.datasets import load_boston
      from sklearn.linear_model import LinearRegression
  
      scikit_data = load_boston()
      scikit_model = LinearRegression()
      scikit_model.fit(scikit_data["data"], scikit_data["target"])
  
      # Save the data and the model
      self.scikit_data = scikit_data
      self.scikit_model = scikit_model
  
file_path: turicreate/src/external/coremltools_wrap/coremltools/coremltools/test/sklearn_tests/test_linear_regression.py
imports: import os
  import pandas
  import unittest
  from coremltools._deps import _HAS_SKLEARN
  from coremltools.models.utils import evaluate_regressor, _macos_version, _is_macos
label_desc: Use image node_id 1 for calling the LinearRegressionScikitTest obj's underlying member method code with example usage: obj.setUpClass() without return types