class_docstr: A sklearn-like interface to scipy.optimize.nnls
class_docstr_tok: ["A","sklearn-like","interface","to","scipy.optimize.nnls"]
docstr: Fit the NonNegativeLeastSquares linear model to data
  
  Parameters
  ----------
docstr_tok: ["Fit","the","NonNegativeLeastSquares","linear","model","to","data","Parameters","--","--","--","--","--"]
code: def fit(self, X, y):
      """
      Fit the NonNegativeLeastSquares linear model to data
  
      Parameters
      ----------
  
      """
      coef, rnorm = opt.nnls(X, y)
      self.coef_ = coef
      return self
  
imports: import abc
  import warnings
  import numpy
  import scipy.sparse
  import scipy.optimize
  from scipy.optimize import minimize
  from dipy.utils.optpkg import optional_package
label_desc: Use image node_id 1 for calling the NonNegativeLeastSquares obj's underlying member method code with example usage: obj.fit(X, y) and returns: self