【问题标题】:Has anyone see error global_output_type with cuml RAPIDS?有没有人看到带有 cuml RAPIDS 的错误 global_output_type ?
【发布时间】:2020-07-17 23:05:19
【问题描述】:

我是 RAPIDS 的新手,之前尝试使用 sklearn 复制逻辑回归模型,但现在使用 cuml,但 LogisticRegression() 调用不起作用。

from cuml.linear_model import LogisticRegression, LinearRegression
ols_cuml=LogisticRegression(penalty='l2')

ols_cuml.fit(X,y)

我收到以下错误:

python-error with cuml

LinearRegression() 加载语句也会出现同样的错误。考虑到 cudf(Pandas for CUDA) 加载良好并且可以在 gpu 数据帧上运行,不知道为什么会发生这种情况。

【问题讨论】:

  • 嗨 alf,欢迎来到 SO。你介意分享mcve吗?

标签: python rapids


【解决方案1】:

如果构建或python设置遇到错误,通常会发生上述错误。

我正在使用 cuml-0.15(每晚发布)并且没有看到与您上面提到的相同的错误。 尝试从此处提供的命令安装 cuml:https://rapids.ai/start.html

我用的是:conda install -c rapidsai-nightly -c nvidia -c conda-forge \ -c defaults cuml=0.15 python=3.7 cudatoolkit=10.2

【讨论】:

    猜你喜欢
    • 2022-10-03
    • 2019-12-13
    • 2021-02-28
    • 2021-08-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-17
    • 2019-09-28
    相关资源
    最近更新 更多