class_docstr: Base class for Linear Models
class_docstr_tok: ["Base","class","for","Linear","Models"]
docstr: Fit model.
docstr_tok: ["Fit","model","."]
code: def fit(self, X, y, sample_weight=None):
      """Fit model."""
  
imports: import numbers
  from abc import ABCMeta, abstractmethod
  from numpy.linalg import LinAlgError
  from sklearn.utils.validation import check_is_fitted, _deprecate_positional_args
  from sklearn.base import MultiOutputMixin
  from ...None import execute
  from ...None import tensor
  from ...tensor.datasource import tensor
  from ..base import BaseEstimator, RegressorMixin, ClassifierMixin
  from ..preprocessing import normalize
  from ..utils.validation import _check_sample_weight, check_array, FLOAT_DTYPES
label_desc: Use image node_id 1 for calling the LinearModel obj's underlying member method code with example usage: obj.fit(X, y, sample_weight) without return types