<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ## lightGBM的安裝 ### 環境 - win10 - R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" - Platform: x86_64-w64-mingw32/x64 (64-bit) - Microsoft Visual Studio Community 2017 - Microsoft Visual C++ 2017 (猜測需要) - Visual Studio Tools for CMake (猜測需要) - 在用VS打開`\LightGBM\windows`項目的時候,VS提示安裝一些組件,不確定是哪些組件。 - [cmake](https://cmake.org/download/) 64bit - Rtools 64bit 系統環境變量PATH - `C:\RBuildTools\3.4\bin` - `C:\Program Files\CMake\bin` - `C:\Program Files\R\R-3.4.3\bin` 其實CMake和VS不知道是否二選一。 ### 安裝 #### 方法一 ```r library(devtools) options(devtools.install.args = "--no-multiarch") install_git("https://github.com/Microsoft/LightGBM", subdir = "R-package") ``` #### 方法二 ``` & 'C:\Program Files\R\R-3.4.3\bin\R.exe' CMD INSTALL --build . --no -multiarch ``` 這樣就直接安裝好lightgbm包。另外也會在`\LightGBM\R-package`文件夾,也就是當前文件夾下生成了一個`lightgbm_2.1.0.zip`文件,貌似在Rstudio下`install.packages("d:/LightGBM/R-package/lightgbm_2.1.0.zip")`,系統提示不能安裝,但是直接解壓到擴展包的文件夾,然后重啟Rstudio,擴展包lightgbm可以用,沒問題。 #### 方法三(未嘗試) ``` devtools::install_github("Laurae2/lgbdl", force = TRUE) ``` ``` lgb.dl(commit = "master", compiler = "vs", repo = "https://github.com/Microsoft/LightGBM") ``` 如果已經有已編譯好的`lib_lightgbm.dll`,可以這樣: ``` lgb.dl(commit = "master", libdll = "C:\\LightGBM\\windows\\x64\\DLL\\lib_lightgbm.dll", # YOUR PRECOMPILED DLL repo = "https://github.com/Microsoft/LightGBM") ``` 如果使用GPU: ``` lgb.dl(commit = "master", compiler = "vs", # Remove this for MinGW + GPU installation repo = "https://github.com/Microsoft/LightGBM", use_gpu = TRUE) ``` ### 參考資料 - <https://github.com/Microsoft/LightGBM/issues/912#issuecomment-329496254> - <https://github.com/Microsoft/LightGBM/tree/master/R-package> - <https://github.com/Microsoft/LightGBM/blob/master/docs/Installation-Guide.rst>
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看