0

早上好,我想使用 GPU 测试 hdbscan(基于层次密度的应用程序空间聚类 w/噪声),所以我应该使用框架 rapids。当我尝试按照此处描述的步骤https://colab.research.google.com/drive/1rY7Ln6rEE1pOlfSHCYOVaqt8OvDO35J0#forceEdit=true&sandboxMode=true&scrollTo=EwaJSKuswsNi 取自 Rapids 网站:https ://rapids.ai/start.html 我得到当我运行函数 CUDF 的代码时出现以下错误:

import cudf
import io, requests

# download CSV file from GitHub
url="https://github.com/plotly/datasets/raw/master/tips.csv"
content = requests.get(url).content.decode('utf-8')

# read CSV from memory
tips_df = cudf.read_csv(io.StringIO(content))
tips_df['tip_percentage'] = tips_df['tip']/tips_df['total_bill']*100

# display average tip by dining party size
print(tips_df.groupby('size').tip_percentage.mean())
ValueError                                Traceback (most recent call last)
<ipython-input-1-a95ca25217db> in <module>()
----> 1 import cudf
      2 import io, requests
      3 
      4 # download CSV file from GitHub
      5 url="https://github.com/plotly/datasets/raw/master/tips.csv"

2 frames
/usr/local/lib/python3.7/site-packages/cudf/_lib/__init__.py in <module>()
      2 import numpy as np
      3 
----> 4 from . import (
      5     avro,
      6     binaryop,

cudf/_lib/avro.pyx in init cudf._lib.avro()

cudf/_lib/column.pyx in init cudf._lib.column()

cudf/_lib/scalar.pyx in init cudf._lib.scalar()

cudf/_lib/interop.pyx in init cudf._lib.interop()
ValueError: pyarrow.lib.Codec size changed, may indicate binary incompatibility. Expected 48 from C header, got 40 from PyObject 

请你帮助我好吗。

谢谢提前

4

1 回答 1

0

Colab 本周进行了一些增强,影响了 RAPIDS 安装过程。正在努力解决问题,并且正在跟踪问题的进展(包括潜在的解决方法)

于 2022-02-04T19:00:54.950 回答