class_docstr: Wrapper class that wraps scikit-learn models as DeepChem models.
  
  When you're working with scikit-learn and DeepChem, at times it can
  be useful to wrap a scikit-learn model as a DeepChem model. The
  reason for this might be that you want to do an apples-to-apples
  comparison of a scikit-learn model to another DeepChem model, or
  perhaps you want to use the hyperparameter tuning capabilities in
  `dc.hyper`. The `SklearnModel` class provides a wrapper around scikit-learn
  models that allows scikit-learn models to be trained on `Dataset` objects
  and evaluated with the same metrics as other DeepChem models.
  
  Example
  ------
  >>> import deepchem as dc
  >>> import numpy as np
  >>> from sklearn.linear_model import LinearRegression
  >>> # Generating a random data and creating a dataset
  >>> X, y = np.random.randn(5, 1), np.random.randn(5)
  >>> dataset = dc.data.NumpyDataset(X, y)
  >>> # Wrapping a Sklearn Linear Regression model using DeepChem models API
  >>> sklearn_model = LinearRegression()
  >>> dc_model = dc.models.SklearnModel(sklearn_model)
  >>> dc_model.fit(dataset)  # fitting dataset
  
  Notes
  -----
  All `SklearnModels` perform learning solely in memory. This means that it
  may not be possible to train `SklearnModel` on large `Dataset`s.
class_docstr_tok: ["Wrapper","class","that","wraps","scikit-learn","models","as","DeepChem","models",".","When","you","'re","working","with","scikit-learn","and","DeepChem",",","at","times","it","can","be","useful","to","wrap","a","scikit-learn","model","as","a","DeepChem","model",".","The","reason","for","this","might","be","that","you","want","to","do","an","apples-to-apples","comparison","of","a","scikit-learn","model","to","another","DeepChem","model",",","or","perhaps","you","want","to","use","the","hyperparameter","tuning","capabilities","in","`","dc.hyper","`",".","The","`","SklearnModel","`","class","provides","a","wrapper","around","scikit-learn","models","that","allows","scikit-learn","models","to","be","trained","on","`","Dataset","`","objects","and","evaluated","with","the","same","metrics","as","other","DeepChem","models",".","Example","--","--","--",">",">",">","import","deepchem","as","dc",">",">",">","import","numpy","as","np",">",">",">","from","sklearn.linear_model","import","LinearRegression",">",">",">","#","Generating","a","random","data","and","creating","a","dataset",">",">",">","X",",","y","=","np.random.randn","(","5",",","1",")",",","np.random.randn","(","5",")",">",">",">","dataset","=","dc.data.NumpyDataset","(","X",",","y",")",">",">",">","#","Wrapping","a","Sklearn","Linear","Regression","model","using","DeepChem","models","API",">",">",">","sklearn_model","=","LinearRegression","(",")",">",">",">","dc_model","=","dc.models.SklearnModel","(","sklearn_model",")",">",">",">","dc_model.fit","(","dataset",")","#","fitting","dataset","Notes","--","--","-","All","`","SklearnModels","`","perform","learning","solely","in","memory",".","This","means","that","it","may","not","be","possible","to","train","`","SklearnModel","`","on","large","`","Dataset","`","s","."]
docstr: Saves scikit-learn model to disk using joblib.
docstr_tok: ["Saves","scikit-learn","model","to","disk","using","joblib","."]
code: def save(self):
      """Saves scikit-learn model to disk using joblib."""
      save_to_disk(self.model, self.get_model_filename(self.model_dir))
  
file_path: deepchem/deepchem/models/sklearn_models/sklearn_model.py
imports: import inspect
  import logging
  from typing import List, Optional
  import numpy
  from sklearn.base import BaseEstimator
  from deepchem.models import Model
  from deepchem.data import Dataset
  from deepchem.trans import Transformer
  from deepchem.utils.data_utils import load_from_disk, save_to_disk
  from deepchem.utils.typing import OneOrMany
label_desc: Use image node_id 5 for calling the SklearnModel obj's underlying member method code with example usage: obj.save() without return types