|
xgboost
|
Utility related to random. More...
#include <rabit/rabit.h>#include <xgboost/logging.h>#include <algorithm>#include <functional>#include <vector>#include <limits>#include <map>#include <memory>#include <numeric>#include <random>#include <utility>#include "xgboost/host_device_vector.h"#include "common.h"
Go to the source code of this file.
Classes | |
| class | xgboost::common::ColumnSampler |
| Handles selection of columns due to colsample_bytree, colsample_bylevel and colsample_bynode parameters. Should be initialised before tree construction and to reset when tree construction is completed. More... | |
Namespaces | |
| xgboost | |
| namespace of xgboost | |
| xgboost::common | |
Typedefs | |
| using | xgboost::common::RandomEngine = std::mt19937 |
| Define mt19937 as default type Random Engine. More... | |
| using | xgboost::common::GlobalRandomEngine = RandomEngine |
| global random engine More... | |
Functions | |
| GlobalRandomEngine & | xgboost::common::GlobalRandom () |
| global singleton of a random engine. This random engine is thread-local and only visible to current thread. More... | |
| template<typename T > | |
| std::vector< T > | xgboost::common::WeightedSamplingWithoutReplacement (std::vector< T > const &array, std::vector< float > const &weights, size_t n) |
Utility related to random.
Copyright 2015-2020 by Contributors
1.8.17