xgboost
Classes | Namespaces | Typedefs | Functions
random.h File Reference

Utility related to random. More...

#include <rabit/rabit.h>
#include <xgboost/logging.h>
#include <algorithm>
#include <vector>
#include <limits>
#include <map>
#include <memory>
#include <numeric>
#include <random>
#include "xgboost/host_device_vector.h"
Include dependency graph for random.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...
 

Detailed Description

Utility related to random.

Copyright 2015 by Contributors

Author
Tianqi Chen