TransWikia.com

Does MLPClassifier (sklearn) support different activations for different layers?

Data Science Asked by DeLorean88 on August 6, 2021

According to the documentation, it says the ‘activation’ argument specifies:

“Activation function for the hidden layer”

Does that mean that you cannot use a different activation function in different layers?

One Answer

One can see from the code (look at uses of self.activation) that the same function is used for all the hidden layers.

You might want to consider the comments to this question for alternative approaches, generally being a move away from sklearn and towards a deep learning framework.

Correct answer by mapto on August 6, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP