[scikit-learn] MLPClassifier - Softmax activation function
Daniel Baláček
daniel.balacek at gmail.com
Wed Apr 18 15:15:54 EDT 2018
Hello everyone
I have a question regarding MLPClassifier in sklearn. In the documentation
in section *1.17. Neural network models (supervised) - 1.17.2
Classification* it is stated that "*MLPClassifier* supports multi-class
classification by applying Softmax
<https://en.wikipedia.org/wiki/Softmax_activation_function> as the output
function."
However it is not clear how to apply the Softmax function.
The way I think (or hope) this works is that if a parameter *activation *is
set to *activation = 'logistic' *Softmax function should be automatically
applied whenever there are more than two classes. Is this right or does one
have to explicitly specify the use of Softmax function in some way?
I am sorry if this is a nonsense question. I am new to scikit-learn and
machine learning in general and I was not sure about this one. Thank you
for any answers in advance.
With regards,
D. B.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-learn/attachments/20180418/b0a7f65d/attachment.html>
More information about the scikit-learn
mailing list