code: def model_builder(model_dir_logreg):
      sklearn_model = LogisticRegression(
          penalty="l2", C=1.0 / 0.05, class_weight="balanced", n_jobs=-1
      )
      return dc.models.sklearn_models.SklearnModel(
          sklearn_model, model_dir_logreg
      )
  
file_path: deepchem/examples/tox21/tox21_logreg.py
imports: from __future__ import print_function
  from __future__ import division
  from __future__ import unicode_literals
  import os
  import shutil
  import numpy
  import deepchem
  from deepchem.molnet import load_tox21
  from sklearn.linear_model import LogisticRegression
label_desc: Use image node_id 1 for calling a global function with example usage: model_builder(model_dir_logreg) and returns: dc