def METHOD_NAME(self, dataset: Dataset) -> None:
    """Fits scikit-learn model to data.
    Parameters
    ----------
    dataset: Dataset
        The `Dataset` to train this model on.
    """
    X = dataset.X
    y = np.squeeze(dataset.y)
    w = np.squeeze(dataset.w)
    # Some scikit-learn models don't use weights.
    if self.use_weights:
        self.model.METHOD_NAME(X, y, w)
        return
    self.model.METHOD_NAME(X, y)