Fleet  0.0.9
Inference in the LOT
Classes | Variables
StructureToSamples.h File Reference

A little data structure to store a mapping from structures and approx posteriors to posterior samples, using a posterior-weighted reservoir sample. This is mostly a wrapper on a std::map but adds until the number of structures exceeds trim_at, at which point it trims to trim_to by removing the structures with the lowest maximum probability. This lets us store the best performing structures, which are the only ones tht matter in the posterior anyways. More...

#include <map>
#include <string>
#include "Singleton.h"
#include "Polynomial.h"
#include "ReservoirSample.h"
Include dependency graph for StructureToSamples.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  StructuresToSamples
 

Variables

StructuresToSamples overall_samples
 

Detailed Description

A little data structure to store a mapping from structures and approx posteriors to posterior samples, using a posterior-weighted reservoir sample. This is mostly a wrapper on a std::map but adds until the number of structures exceeds trim_at, at which point it trims to trim_to by removing the structures with the lowest maximum probability. This lets us store the best performing structures, which are the only ones tht matter in the posterior anyways.

NOTE: We learned that we need to map from approx posteriors not just structures since many of the structures are multimodal, so that if we only do it by structure, we end up with bad modes for a structure overwriting the good ones.

Variable Documentation

◆ overall_samples

StructuresToSamples overall_samples