forpy
2
|
Desk for tree training. More...
#include <desk.h>
Public Member Functions | |
void | setup (std::atomic< size_t > *silp, std::atomic< id_t > *np, std::vector< std::pair< id_t, id_t >> *tsp) |
Set up all the internal pointers. More... | |
void | reset () |
Clear the marks and reset all pointers. More... | |
Public Attributes | |
std::vector< TodoMark > | marks |
std::atomic< size_t > * | stored_in_leafs |
std::atomic< id_t > * | next_id_p |
std::vector< std::pair< id_t, id_t > > * | tree_p |
Desk for tree training.
Storage container for threaded tree training (see also Desk Implementations).
|
inline |
std::vector<TodoMark> forpy::TreeDesk::marks |
std::atomic<id_t>* forpy::TreeDesk::next_id_p |
To determine the ID of the next tree node to use. Usually points to forpy::Tree::next_id (see the doc there for the storage concept).
std::atomic<size_t>* forpy::TreeDesk::stored_in_leafs |
Tracking how many samples have been stored (mainly as sanity check). Usually points to forpy::Tree::stored_in_leafs.
A vector representation of the tree. Usually points to forpy::Tree::tree.