Medial Code Documentation
|
Utility related to random. More...
#include <xgboost/logging.h>
#include <algorithm>
#include <functional>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <random>
#include <utility>
#include <vector>
#include "../collective/communicator-inl.h"
#include "algorithm.h"
#include "common.h"
#include "xgboost/context.h"
#include "xgboost/host_device_vector.h"
Go to the source code of this file.
Data Structures | |
class | xgboost::common::ColumnSampler |
Handles selection of columns due to colsample_bytree, colsample_bylevel and colsample_bynode parameters. More... | |
Namespaces | |
namespace | xgboost |
namespace of xgboost | |
namespace | xgboost::common |
Copyright 2017-2023, XGBoost Contributors. | |
Typedefs | |
using | xgboost::common::RandomEngine = std::mt19937 |
Define mt19937 as default type Random Engine. | |
using | xgboost::common::GlobalRandomEngine = RandomEngine |
global random engine | |
Functions | |
GlobalRandomEngine & | xgboost::common::GlobalRandom () |
global singleton of a random engine. This random engine is thread-local and only visible to current thread. | |
template<typename T > | |
std::vector< T > | xgboost::common::WeightedSamplingWithoutReplacement (Context const *ctx, std::vector< T > const &array, std::vector< float > const &weights, size_t n) |
Utility related to random.
Copyright 2015-2020 by Contributors