LightGBM 可用于 Mac M1 吗?

kid*_*rom 4 python pip kaggle lightgbm apple-m1

我的目标是学习笔记本。它的召回率高达 97%,而我却在 F1 分数“流失的客户”77.9% 中苦苦挣扎。问题是笔记本使用LightGBM。我无法安装 LightGBM。

\n

我尝试过的:

\n
    \n
  1. pip install lightgbm-> 它抛出错误python setup.py egg_info did not run successfully.
  2. \n
  3. 然后,我做了pip install wheel-> 现在它抛出错误python setup.py bdist_wheel did not run successfully.
  4. \n
  5. 然后,我做到了pip install Cmake,,pip install --upgrade pip setuptoolsbrew install libomp >错误仍然存​​在。
  6. \n
\n

完整错误

\n
  \xc3\x97 python setup.py bdist_wheel did not run successfully.\n  \xe2\x94\x82 exit code: 1\n  \xe2\x95\xb0\xe2\x94\x80> [80 lines of output]\n      INFO:root:running bdist_wheel\n      /Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.\n        warnings.warn(\n      INFO:root:running build\n      INFO:root:running build_py\n      INFO:root:creating build\n      INFO:root:creating build/lib\n      INFO:root:creating build/lib/lightgbm\n
Run Code Online (Sandbox Code Playgroud)\n

Jam*_*amb 6

截至撰写本文时,还没有正式版本的lightgbm(LightGBM 的 Python 包)支持 M1 Mac(使用 ARM 芯片)。

osx-arm64的构建lightgbm受 conda-forge feedstock 支持,lightgbm因此您可以lightgbm使用conda.

conda install \
   --yes \
   -c conda-forge \
   'lightgbm>=3.3.3'
Run Code Online (Sandbox Code Playgroud)

可以在microsoft/LightGBM#5269和microsoft/LightGBM#5328中跟踪正式支持 LightGBM M1 Mac 版本的进展。