Error Importing Scipy.special.expit
I want to import the sigmoid function available at scipy.special.expit. If I use import scipy.special.expit as sigmoid (or without the 'as sigmoid') I get a 'No module called expit
Solution 1:
As I noted in a comment,
from scipy.special import expit
should work. To import expit
with the name sigmoid
, use
from scipy.special import expit as sigmoid
Post a Comment for "Error Importing Scipy.special.expit"