Skip to content

Commit

Permalink
Merge branch 'master' into windows_prefetch
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis authored Jan 6, 2025
2 parents 20f16c5 + 2183e49 commit 4fdc17e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/r_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.r }}-7-${{ hashFiles('R-package/DESCRIPTION') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.r }}-7-${{ hashFiles('R-package/DESCRIPTION') }}
key: ${{ runner.os }}-r-${{ matrix.r }}-8-${{ hashFiles('R-package/DESCRIPTION') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.r }}-8-${{ hashFiles('R-package/DESCRIPTION') }}
- uses: actions/setup-python@v5
with:
python-version: "3.10"
Expand Down
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,8 @@ if(GOOGLE_TEST)
configure_file(
${xgboost_SOURCE_DIR}/tests/cli/machine.conf.in
${xgboost_BINARY_DIR}/tests/cli/machine.conf
@ONLY)
@ONLY
NEWLINE_STYLE UNIX)
if(BUILD_DEPRECATED_CLI)
add_test(
NAME TestXGBoostCLI
Expand Down
4 changes: 3 additions & 1 deletion cmake/Version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ function(write_version)
message(STATUS "xgboost VERSION: ${xgboost_VERSION}")
configure_file(
${xgboost_SOURCE_DIR}/cmake/version_config.h.in
${xgboost_SOURCE_DIR}/include/xgboost/version_config.h @ONLY)
${xgboost_SOURCE_DIR}/include/xgboost/version_config.h
@ONLY
NEWLINE_STYLE UNIX)
endfunction()
2 changes: 1 addition & 1 deletion doc/tutorials/model.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ It remains to ask: which tree do we want at each step? A natural thing is to ad

.. math::
\text{obj}^{(t)} & = \sum_{i=1}^n l(y_i, \hat{y}_i^{(t)}) + \sum_{i=1}^t\omega(f_i) \\
\text{obj}^{(t)} & = \sum_{i=1}^n l(y_i, \hat{y}_i^{(t)}) + \sum_{k=1}^t\omega(f_k) \\
& = \sum_{i=1}^n l(y_i, \hat{y}_i^{(t-1)} + f_t(x_i)) + \omega(f_t) + \mathrm{constant}
If we consider using mean squared error (MSE) as our loss function, the objective becomes
Expand Down

0 comments on commit 4fdc17e

Please sign in to comment.