I want to experiment with partial least squares regressions. My research points to lalvim’s PartialLeastSquaresRegressor as the only package with PLSR, but when I run Example 1, PLSRegressor() isn’t found. If there is another package with something to do PSLR, I haven’t found it.
I’m not very familiar with the MLJ ecosystem, but in its documentation (September 2025) PartialLeastSquaresRegressor.jl’s PLSRegressor and KPLSRegressor are listed, so they should presumably work. I guess you should open an issue with MLJ.jl (though pessimistically this might just result in the package being taken off the list ).
In any case, ‘loading’ PLSRegressor via PLSRegressor = PartialLeastSquaresRegressor.PLSRegressor
seems to work, i.e. the rest of Example 1 then runs for me.
Thanks. At first your solution didn’t work. Then I removed MLJ and related modules and added them back in. Example 1 and 2 work with your modification to loading PLSRegressor and KPLSRegressor.