Vowpal Wabbit
Public Member Functions | Public Attributes | List of all members
ExpReplay::expreplay< lp > Struct Template Reference

#include <expreplay.h>

Public Member Functions

 ~expreplay ()
 

Public Attributes

vwall
 
std::shared_ptr< rand_state_random_state
 
size_t N
 
examplebuf
 
bool * filled
 
size_t replay_count
 
LEARNER::single_learnerbase
 

Detailed Description

template<label_parser & lp>
struct ExpReplay::expreplay< lp >

Definition at line 11 of file expreplay.h.

Constructor & Destructor Documentation

◆ ~expreplay()

template<label_parser & lp>
ExpReplay::expreplay< lp >::~expreplay ( )
inline

Definition at line 22 of file expreplay.h.

References VW::dealloc_example(), and ExpReplay::expreplay< lp >::N.

23  {
24  for (size_t n = 0; n < N; n++)
25  {
26  lp.delete_label(&buf[n].l);
27  VW::dealloc_example(NULL, buf[n], NULL); // TODO: need to free label
28  }
29  free(buf);
30  free(filled);
31  }
void dealloc_example(void(*delete_label)(void *), example &ec, void(*delete_prediction)(void *))
Definition: example.cc:219

Member Data Documentation

◆ _random_state

template<label_parser & lp>
std::shared_ptr<rand_state> ExpReplay::expreplay< lp >::_random_state

Definition at line 14 of file expreplay.h.

Referenced by ExpReplay::predict_or_learn().

◆ all

template<label_parser & lp>
vw* ExpReplay::expreplay< lp >::all

Definition at line 13 of file expreplay.h.

Referenced by ExpReplay::expreplay_setup(), and ExpReplay::predict_or_learn().

◆ base

template<label_parser & lp>
LEARNER::single_learner* ExpReplay::expreplay< lp >::base

Definition at line 20 of file expreplay.h.

Referenced by ExpReplay::end_pass().

◆ buf

template<label_parser & lp>
example* ExpReplay::expreplay< lp >::buf

Definition at line 16 of file expreplay.h.

Referenced by ExpReplay::end_pass(), and ExpReplay::predict_or_learn().

◆ filled

template<label_parser & lp>
bool* ExpReplay::expreplay< lp >::filled

Definition at line 17 of file expreplay.h.

Referenced by ExpReplay::end_pass(), and ExpReplay::predict_or_learn().

◆ N

template<label_parser & lp>
size_t ExpReplay::expreplay< lp >::N

◆ replay_count

template<label_parser & lp>
size_t ExpReplay::expreplay< lp >::replay_count

Definition at line 18 of file expreplay.h.

Referenced by ExpReplay::predict_or_learn().


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