[scikit-learn] Data type returned by PLSR different from other estimators
GOMEZ TAMAYO, JOSE CARLOS
josecarlos.gomez at upf.edu
Fri Mar 31 04:29:14 EDT 2017
Hi there,
I have recently run into a problem when dealing with PLSR (and other
cross-decomposition methods) prediction output. Unlike other estimators
which return a numpy array containing the predictions, PLSR returns a list
of single-value lists containing the predictions.
I do not know why this done this way (perhaps there is a reason unknown to
me) but the fact the estimator is returning a different data type should be
advised in the documentation. It is easily solved through modifying the
source code or just by overriding the method.
Cheers,
Jose Carlos Gómez
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20170331/29c37c77/attachment-0001.html>
More information about the scikit-learn
mailing list