如何导入 tsfel 模块而不引发错误?
我使用 tsfel 包从信号中提取特征。我尝试实现个性化功能,并且已阅读文档 (https:// tsfel.readthedocs.io/en/latest/descriptions/personal.html)。我已完全按照这些步骤操作,但当我尝试运行第二步(即将新功能添加到 features.json)时,它会引发错误 ModuleNotFoundError: No module named 'tsfel.features_utils'
。
这是一个简单的代码示例
import numpy as np
# from tsfel.add_personal_features import add_feature_json
@set_domain("domain", "statistical")
def range(signal):
range = np.max(signal) - np.min(signal)
return range
错误是:ModuleNotFoundError:没有名为'tsfel.features_utils'的模块
我应该如何导入模块?
I use the tsfel
package to extract features from signals. I try to implement a personalized feature and I have read the documentation (https://tsfel.readthedocs.io/en/latest/descriptions/personal.html). I have followed the steps exactly but when i try to run the second step (i.e. Add the new feature to features.json) it raises an error ModuleNotFoundError: No module named 'tsfel.features_utils'
.
Here is a simple example of code
import numpy as np
# from tsfel.add_personal_features import add_feature_json
@set_domain("domain", "statistical")
def range(signal):
range = np.max(signal) - np.min(signal)
return range
The error is: ModuleNotFoundError: No module named 'tsfel.features_utils'
How should I import the module?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于0.1.6版本,您可以执行以下操作
您也可以从 github

For the version 0.1.6, you may do as follows
You can also confirm it from the github
