class_docstr: Vowpal Wabbit Scikit-learn Base Estimator wrapper
class_docstr_tok: ["Vowpal","Wabbit","Scikit-learn","Base","Estimator","wrapper"]
docstr: Sets coefficients weights from ordered sparse matrix
  
  Args:
      coefs (sparse matrix): coefficient weights for model
code: def set_coefs(self, coefs):
      """Sets coefficients weights from ordered sparse matrix
  
      Args:
          coefs (sparse matrix): coefficient weights for model
      """
  
      model = self.get_vw()
      for i in range(coefs.getnnz()):
          model.set_weight(
              int(coefs.indices[i]), 0, float(coefs.data[i])
          )
  
imports: import io
  import os
  import re
  from tempfile import NamedTemporaryFile
  from typing import Dict
  import numpy
  from scipy.sparse import csr_matrix
  from scipy.special import logit
  from sklearn.exceptions import NotFittedError
  from sklearn.base import BaseEstimator, RegressorMixin
  from sklearn.utils.extmath import log_logistic
  from sklearn.linear_model import LogisticRegression
  from sklearn.datasets import dump_svmlight_file
  from sklearn.utils import check_array, check_X_y, shuffle
  from vowpalwabbit import Workspace
label_desc: Use image node_id 8 for calling the VW obj's underlying member method code with example usage: obj.set_coefs(coefs) without return types