CNum 0.2.1
CPU-optimized ML library for C++
Loading...
Searching...
No Matches
TreeDefs.h File Reference
#include "CNum/DataStructs/DataStructs.h"
#include <utility>
#include <variant>

Go to the source code of this file.

Classes

struct  CNum::Model::Tree::Histogram
 Holds the total gradients and hessians for all bins. More...
struct  CNum::Model::Tree::DataPartition
 A data partition for the set of samples a tree node has to work with during the tree building process. More...
struct  CNum::Model::Tree::Split
 Holds data associated with the decision making process in a TreeBoosterNode. More...

Namespaces

namespace  CNum::Model::Tree
 Tree-based models.
namespace  CNum
 The umbrella namespace from which you can access all modules of CNum.
namespace  CNum::Model
 The namespace containing the ML models in CNum.

Typedefs

using CNum::Model::Tree::SplitValuePair = std::pair<double, double>
using CNum::Model::Tree::DataMatrix = std::variant< CNum::DataStructs::Matrix<int>, CNum::DataStructs::Matrix<double> >

Enumerations

enum  CNum::Model::Tree::split_dir { CNum::Model::Tree::LEFT , CNum::Model::Tree::RIGHT }
 Signifies the direction of a node resultant of a split in relation to its parent. More...

Variables

constexpr int CNum::Model::Tree::N_BINS = 256
 Number of bins used in the Tree models.