Fleet  0.0.9
Inference in the LOT
Functions
Data.h File Reference
#include <cstring>
#include <vector>
#include <map>
#include <algorithm>
#include "DiscreteDistribution.h"
#include "FleetArgs.h"
Include dependency graph for Data.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename datum_t >
void load_data_file (std::vector< datum_t > &data, const char *datapath)
 
template<typename T , typename TDATA >
std::map< T, double > highest (const std::vector< TDATA > &m, unsigned long N)
 
template<typename TDATA >
std::pair< double, double > get_precision_and_recall (DiscreteDistribution< std::string > &model, std::vector< TDATA > &data, unsigned long N)
 

Function Documentation

◆ get_precision_and_recall()

template<typename TDATA >
std::pair<double, double> get_precision_and_recall ( DiscreteDistribution< std::string > &  model,
std::vector< TDATA > &  data,
unsigned long  N 
)

◆ highest()

template<typename T , typename TDATA >
std::map<T, double> highest ( const std::vector< TDATA > &  m,
unsigned long  N 
)

◆ load_data_file()

template<typename datum_t >
void load_data_file ( std::vector< datum_t > &  data,
const char *  datapath 
)

Load data from a file and puts stringprobs into obs, which is a dictionary of strings to ndata total elements, and obsv, which is a vector that is sorted by probability

Parameters
data
datapath