A MLJ Interface to the NonNegLeastSquares.jl package.
add NonNegLeastSquaresMLJInterface
using NonNegLeastSquaresMLJInterface: NonNegativeLeastSquareRegressor
n = 100
X = randn(n, 3)
y = X * [2, -10, 7] + randn(n)
model = NonNegativeLeastSquareRegressor(;alg=:nnls)
mach = machine(model, X, y)
fit!(mach)
fp = fitted_params(mach)