lppl
v2.0.0
|
A collection of weighted records. More...
#include "query.hpp"
Public Member Functions | |
void | clear () |
Resets the instance. | |
std::shared_ptr< record_collection_t< O, Ts... > > | emit () |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
![]() | |
std::shared_ptr< record_collection_t< O, Ts... > > | emit () |
Emits the result of the query. | |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
Updates the state of the queryer. More... | |
![]() | |
void | clear () |
Resets all values associated with the queryer. | |
double | lse_weights () |
Returns \(\log Z = \log \sum_{1 \leq n \leq N} \exp w_n \). More... | |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
Computes \(\log Z = \log \sum_{1 \leq n \leq N} \exp w_n \). More... | |
![]() | |
V | emit () |
Emits the result of the query. | |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
Updates the state of the queryer. More... | |
![]() | |
void | clear () |
double | emit () |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
![]() | |
double | emit () |
Emits the result of the query. | |
void | update (record_t< DTypes< Ts... >> &r, O output, double weight, inf_options_t opts) |
Updates the state of the queryer. More... | |
Protected Attributes | |
std::vector< O > | o |
std::vector< record_t< DTypes< Ts... > > > | v |
Additional Inherited Members | |
![]() | |
std::vector< double > | w |
![]() | |
double | _alpha |
double | _lse_weights |
double | _r |
A collection of weighted records.
This is the empirical joint posterior distribution. The memory use of this object scales as O(num_samples).