I am currently working on the MLPClassifier of the neural_network package in sklearn.
I have fit the model; I want to access the weights given by the classifier to the input features. How do I access them?
Thanks in advance!
Check out the documentation. See the field coefs_.
Try:
print model.coefs_
Generally, I recommend:
if that fails, then
print dir(model)
or
help(model)
will tell you what's available for in most cases.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With