我想在Raspberry Pi上使用sktime进行时间序列分类推理。我无法正确安装它所需的依赖项,特别是numpy和numba。当我运行pip install sktime
时,它可以正确安装并正确导入。但是当我尝试使用fit
或predict
时,它会抛出一个错误。
pip install sktime
# In python interpreter
import numpy as np
from sktime.classification.kernel_based import RocketClassifier
rocket = RocketClassifier(num_kernels=2000)
X_train = np.array([[[1,2,3,4,4,5]], [[1,2,3,4,5,5]], [[1,2,4,5,6,7]]])
y_train = np.array([0, 0, 1])
rocket.fit(X_train, y_train)
字符串
这给。
UnsupportedParforsError: Failed in nopython mode pipeline (step: nopython mode backend)
The 'parallel' target is not currently supported on 32 bit hardware.
During: lowering "id=0[LoopNest(index_variable = parfor_index.62, range = (0, X_size0.1, 1)), LoopNest(index_variable = parfor_index.63, range = (0, $50binary_multiply.23, 1))]{335: <ir.Block at /home/sashi/.local/lib/python3.9/site-packages/sktime/transformations/panel/rocket/_rocket_numba.py (180)>}Var($parfor_index_tuple_var.69, _rocket_numba.py:180)" at /home/sashi/.local/lib/python3.9/site-packages/sktime/transformations/panel/rocket/_rocket_numba.py (180)
型
我相信这是因为numpy
和numba
版本不兼容。
numba 0.52.0
numpy 1.21.1
型
我尝试了pip install numba==0.53.0
,但安装Failed to build llvmlite
失败。
我的平台是:
- Current OS
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 11 (bullseye)
Release: 11
Codename: bullseye
11.7
- Kernel
6.1.21-v7+
- Architecture
armv7l
- Model
Raspberry Pi 3 Model B Rev 1.2
型
如何在raspberry pi上安装sktime?
任何帮助,如果非常感谢!
1条答案
按热度按时间nwnhqdif1#
查看错误,似乎sktime模型
roket_numba
只适用于64位架构。你运行的是32位版本的Raspbian,这就是问题所在。