CDNNLS#
- class niriss_tools.grism.CDNNLS(X, y)[source]#
Bases:
objectCoordinate descent NNLS.
- Parameters:
- X
ArrayLike The coefficient array.
- y
ArrayLike The RHS vector.
- X
Methods Summary
run([method, n_iter, epsilon])Run a non-negative least squares solver.
Methods Documentation
- run(method='classic', n_iter=None, epsilon=1e-06, **kwargs)[source]#
Run a non-negative least squares solver.
- Parameters:
- method
str, optional The method to use, either the default “classic”, or “antilop”.
- n_iter
int|None, optional How many iterations to run. If
None, then this is set to3*X.shape[1].- epsilon
float, optional The tolerance to use for the stopping condition, by default
1e-6.- **kwargs
dict, optional Other arguments to pass to the individual methods.
- method