xgboost
Classes | Public Member Functions | Public Attributes | List of all members
xgboost::common::RowSetCollection Class Reference

collection of rowset More...

#include <row_set.h>

Collaboration diagram for xgboost::common::RowSetCollection:
Collaboration graph

Classes

struct  Elem
 data structure to store an instance set, a subset of rows (instances) associated with a particular node in a decision tree. More...
 
struct  Split
 

Public Member Functions

std::vector< Elem >::const_iterator begin () const
 
std::vector< Elem >::const_iterator end () const
 
const Elemoperator[] (unsigned node_id) const
 return corresponding element set given the node_id More...
 
void Clear ()
 
void Init ()
 
void AddSplit (unsigned node_id, const std::vector< Split > &row_split_tloc, unsigned left_node_id, unsigned right_node_id)
 

Public Attributes

std::vector< size_t > row_indices_
 

Detailed Description

collection of rowset

Member Function Documentation

◆ AddSplit()

void xgboost::common::RowSetCollection::AddSplit ( unsigned  node_id,
const std::vector< Split > &  row_split_tloc,
unsigned  left_node_id,
unsigned  right_node_id 
)
inline

◆ begin()

std::vector<Elem>::const_iterator xgboost::common::RowSetCollection::begin ( ) const
inline

◆ Clear()

void xgboost::common::RowSetCollection::Clear ( )
inline

◆ end()

std::vector<Elem>::const_iterator xgboost::common::RowSetCollection::end ( ) const
inline

◆ Init()

void xgboost::common::RowSetCollection::Init ( )
inline

◆ operator[]()

const Elem& xgboost::common::RowSetCollection::operator[] ( unsigned  node_id) const
inline

return corresponding element set given the node_id

Member Data Documentation

◆ row_indices_

std::vector<size_t> xgboost::common::RowSetCollection::row_indices_

The documentation for this class was generated from the following file: