Skip to content

Commit

Permalink
footnote.
Browse files Browse the repository at this point in the history
  • Loading branch information
trivialfis committed Jun 9, 2023
1 parent fb9cf20 commit 9ac4691
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion doc/tutorials/learning_to_rank.rst
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ XGBoost implements distributed learning-to-rank with integration of multiple fra
Reproducible Result
*******************
Like any other tasks, XGBoost should generate reproducible results given the same hardware and software environments (and data partitions, if distributed interface is used). Even when the underlying environment has changed, the result should still be consistent. However, when the ``lambdarank_pair_method`` is set to ``mean``, XGBoost uses random sampling, and results may differ depending on the platform used. The random number generator used on Windows (Microsoft Visual C++) is different from the ones used on other platforms like Linux (GCC, Clang), so the output varies significantly between these platforms.
Like any other tasks, XGBoost should generate reproducible results given the same hardware and software environments (and data partitions, if distributed interface is used). Even when the underlying environment has changed, the result should still be consistent. However, when the ``lambdarank_pair_method`` is set to ``mean``, XGBoost uses random sampling, and results may differ depending on the platform used. The random number generator used on Windows (Microsoft Visual C++) is different from the ones used on other platforms like Linux (GCC, Clang) [#f0]_, so the output varies significantly between these platforms.
.. [#f0] `minstd_rand` implementation is different on MSVC. The implementations from GCC and Thrust produce the same output.
**********
References
Expand Down

0 comments on commit 9ac4691

Please sign in to comment.