模块“ scipy.special”没有“ expit”成员

时间:2018-08-23 17:52:40

标签: python scipy visual-studio-code

我正在尝试从scipy使用sigmoid函数。 scipy模块的导入方式如下:import scipy.special。变量的分配方式如下:self.activation_function = lambda x:scipy.special.expit(x)。

错误是:模块'scipy.special'没有'expit'成员。 使用Visual Studio Code时出现此错误。在Jupyter Notebook中可以正常工作。

提前谢谢...

The line of code is given in the picture

0 个答案:

没有答案