There was already a question like this, but it was not answered, so I try to post it again. Does anyone know of an open-source implementation of a partial least squares algorithm in C++ (or C)? Or maybe a library that does it?
- FastPLS is a library that provides a C/C++ and MATLAB interface for speeding up partial least squares. Its author is Balaji Vasan Srinivasan. The author worked under the supervision of Professor Ramani Duraiswami at the University of Maryland, College Park, MD, USA.
- Partial Least Squares and Generalized Partial Least Squares models based on NIPALS algorithm.
- implement by yourself using matrix libraries such as Armadillo
- PLSNiplas, opencv is required.
Found the PLS NIPALS C++ library, but haven't tried it yet.
MTK++ is a library for drug design.
It's builds upon various matrix based libraries such as:
The Basic Linear Algebra Subprograms (BLAS), Linear Algebra PACKage (LAPACK), Boost, eigen, Qt, tinyxml and xerces-c libraries
It has a partial least squares component.
It is open-source but the source isn't hosted on-line. You have to contact the author to get it.
found this one here: https://github.com/tjhladish/PLS
it is c++ and using the Eigen lib
来源:https://stackoverflow.com/questions/11467321/partial-least-squares-library