[scikit-learn] MLPClassifier as a feature selector

Thomas Evangelidis tevang3 at gmail.com
Wed Dec 6 18:49:42 EST 2017


Greetings,

I want to train a MLPClassifier with one hidden layer and use it as a
feature selector for an MLPRegressor.
Is it possible to get the values of the neurons from the last hidden layer
of the MLPClassifier to pass them as input to the MLPRegressor?

If it is not possible with scikit-learn, is anyone aware of any
scikit-compatible NN library that offers this functionality? For example
this one:

http://scikit-neuralnetwork.readthedocs.io/en/latest/index.html

I wouldn't like to do this in Tensorflow because the MLP there is much
slower than scikit-learn's implementation.


Thomas


-- 

======================================================================

Dr Thomas Evangelidis

Post-doctoral Researcher
CEITEC - Central European Institute of Technology
Masaryk University
Kamenice 5/A35/2S049,
62500 Brno, Czech Republic

email: tevang at pharm.uoa.gr

          tevang3 at gmail.com


website: https://sites.google.com/site/thomasevangelidishomepage/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20171207/f9fab8a6/attachment-0001.html>


More information about the scikit-learn mailing list