How to set initial weights in MLPClassifier?

后端 未结 3 1951
無奈伤痛
無奈伤痛 2021-01-02 08:07

I cannot find a way to set the initial weights of the neural network, could someone tell me how please? I am using python package sklearn.neural_network.MLPClassifier.

3条回答
  •  时光取名叫无心
    2021-01-02 08:27

    multilayer_perceptron.py initializes the weights based on the nonlinear function used for hidden layers. If you want to try a different initialization, you can take a look at the function _init_coef here and modify as you desire.

提交回复
热议问题