#include <cstring>
#include <vector>
#include <map>
#include <algorithm>
#include "DiscreteDistribution.h"
#include "FleetArgs.h"
Go to the source code of this file.
|
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) |
|
◆ 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
-