* Pass pointer to model parameters. This PR de-duplicates most of the model parameters except the one in `tree_model.h`. One difficulty is `base_score` is a model property but can be changed at runtime by objective function. Hence when performing model IO, we need to save the one provided by users, instead of the one transformed by objective. Here we created an immutable version of `LearnerModelParam` that represents the value of model parameter after configuration.
10 lines
377 B
CMake
10 lines
377 B
CMake
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)
|
|
configure_file(
|
|
${xgboost_SOURCE_DIR}/cmake/Python_version.in
|
|
${xgboost_SOURCE_DIR}/python-package/xgboost/VERSION @ONLY)
|
|
endfunction (write_version)
|