模块'西皮。特别'没有'expit'memb

2024-09-30 20:20:41 发布

您现在位置:Python中文网/ 问答频道 /正文

我想用scipy的sigmoid函数。scipy模块的导入方式如下:import西皮。特别. 变量的赋值方式如下:自我激活功能=λx:scipy.special.expit(x) 一。在

错误是:Module'西皮。特别“”没有“expit”成员。 我在使用visualstudio代码时遇到此错误。在Jupyter笔记本可以正常工作。在

提前谢谢你。。。在

The line of code is given in the picture


Tags: 模块函数import功能错误方式成员scipy