• 大小: 89.09MB
    文件类型: .zip
    金币: 2
    下载: 3 次
    发布日期: 2023-05-31
  • 语言: Python
  • 标签: lightgbm  gpu  window  

资源简介

命令行进入python-package目录下,输入pip install lightgbm –install-option=–gpu即可安装gpu版本。

资源截图

代码片段和文件信息

import os
import sys

from distutils.file_util import copy_file


if __name__ == “__main__“:
    source = sys.argv[1]
    current_dir = os.path.abspath(os.path.dirname(__file__))
    linux_folder_path = os.path.join(current_dir “runtimes“ “linux-x64“ “native“)
    if not os.path.exists(linux_folder_path):
        os.makedirs(linux_folder_path)
    osx_folder_path = os.path.join(current_dir “runtimes“ “osx-x64“ “native“)
    if not os.path.exists(osx_folder_path):
        os.makedirs(osx_folder_path)
    windows_folder_path = os.path.join(current_dir “runtimes“ “win-x64“ “native“)
    if not os.path.exists(windows_folder_path):
        os.makedirs(windows_folder_path)
    build_folder_path = os.path.join(current_dir “build“)
    if not os.path.exists(build_folder_path):
        os.makedirs(build_folder_path)
    copy_file(os.path.join(source “lib_lightgbm.so“) os.path.join(linux_folder_path “lib_lightgbm.so“))
    copy_file(os.path.join(source “lib_lightgbm.dylib“) os.path.join(osx_folder_path “lib_lightgbm.dylib“))
    copy_file(os.path.join(source “lib_lightgbm.dll“) os.path.join(windows_folder_path “lib_lightgbm.dll“))
    copy_file(os.path.join(source “lightgbm.exe“) os.path.join(windows_folder_path “lightgbm.exe“))
    version = open(os.path.join(current_dir os.path.pardir ‘VERSION.txt‘)).read().strip()
    nuget_str = ‘‘‘l version=“1.0“?>
    lns=“http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd“>
    tadata>
        LightGBM
        %s
        Guolin Ke
        Guolin Ke
        https://github.com/Microsoft/LightGBM/blob/master/LICENSE
        https://github.com/Microsoft/LightGBM
        false
        ription>A fast distributed high performance gradient boosting frameworkription>
        Copyright 2018 @ Microsoft
        machine-learning data-mining distributed native boosting gbdt
         
    
tadata>
        
        
        
        

    
    ‘‘‘ % version
    prop_str = ‘‘‘
    lns=“http://schemas.microsoft.com/developer/msbuild/2003“>
                                Exists(‘$(MSBuildProjectName).packages.config‘) OR
                            Exists(‘packages.$(MSBuildProjectName).config‘)“>
                        Condition=“‘$(PlatformTarget)‘ == ‘x64‘“>
        PreserveNewest
        false
        
        

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-09-27 14:28  LightGBM\
     文件        2229  2018-09-27 14:08  LightGBM\.appveyor.yml
     目录           0  2018-09-27 14:08  LightGBM\.ci\
     文件        2622  2018-09-27 14:08  LightGBM\.ci\setup.sh
     文件        7375  2018-09-27 14:08  LightGBM\.ci\test.sh
     文件        1898  2018-09-27 14:08  LightGBM\.ci\test_windows.ps1
     目录           0  2018-09-27 14:08  LightGBM\.git\
     目录           0  2018-09-27 14:08  LightGBM\.github\
     文件         554  2018-09-27 14:08  LightGBM\.github\ISSUE_TEMPLATE.md
     文件        5921  2018-09-27 14:08  LightGBM\.gitignore
     文件          98  2018-09-27 14:08  LightGBM\.gitmodules
     文件         403  2018-09-27 14:08  LightGBM\.git\config
     文件          73  2018-09-27 14:07  LightGBM\.git\description
     文件          23  2018-09-27 14:08  LightGBM\.git\HEAD
     目录           0  2018-09-27 14:07  LightGBM\.git\hooks\
     文件         478  2018-09-27 14:07  LightGBM\.git\hooks\applypatch-msg.sample
     文件         896  2018-09-27 14:07  LightGBM\.git\hooks\commit-msg.sample
     文件        3327  2018-09-27 14:07  LightGBM\.git\hooks\fsmonitor-watchman.sample
     文件         189  2018-09-27 14:07  LightGBM\.git\hooks\post-update.sample
     文件         424  2018-09-27 14:07  LightGBM\.git\hooks\pre-applypatch.sample
     文件        1642  2018-09-27 14:07  LightGBM\.git\hooks\pre-commit.sample
     文件        1348  2018-09-27 14:07  LightGBM\.git\hooks\pre-push.sample
     文件        4898  2018-09-27 14:07  LightGBM\.git\hooks\pre-rebase.sample
     文件         544  2018-09-27 14:07  LightGBM\.git\hooks\pre-receive.sample
     文件        1492  2018-09-27 14:07  LightGBM\.git\hooks\prepare-commit-msg.sample
     文件        3610  2018-09-27 14:07  LightGBM\.git\hooks\update.sample
     文件       33045  2018-09-27 14:08  LightGBM\.git\index
     目录           0  2018-09-27 14:07  LightGBM\.git\info\
     文件         240  2018-09-27 14:07  LightGBM\.git\info\exclude
     目录           0  2018-09-27 14:08  LightGBM\.git\logs\
     文件         174  2018-09-27 14:08  LightGBM\.git\logs\HEAD
............此处省略1355个文件信息

评论

共有 条评论