parameters: (self, coefs)
docstring: Sets coefficients weights from ordered sparse matrix
  
          Args:
              coefs (sparse matrix): coefficient weights for model
docstring_summary: Sets coefficients weights from ordered sparse matrix
docstring_tokens: Sets coefficients weights from ordered sparse matrix
function: 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]))
function_tokens: def set_coefs ( self , coefs ) : model = self . get_vw ( ) for i in range ( coefs . getnnz ( ) ) : model . set_weight ( int ( coefs . indices [ i ] ) , 0 , float ( coefs . data [ i ] ) )