Vowpal Wabbit
|
#include <stdio.h>
#include <float.h>
#include <errno.h>
#include <iostream>
#include <sstream>
#include <math.h>
#include <assert.h>
#include "global_data.h"
#include "gd.h"
#include "vw_exception.h"
Go to the source code of this file.
Classes | |
struct | global_prediction |
Functions | |
size_t | really_read (int sock, void *in, size_t count) |
void | get_prediction (int sock, float &res, float &weight) |
void | send_prediction (int sock, global_prediction p) |
void | binary_print_result (int f, float res, float weight, v_array< char >) |
int | print_tag (std::stringstream &ss, v_array< char > tag) |
void | print_result (int f, float res, float, v_array< char > tag) |
void | print_raw_text (int f, std::string s, v_array< char > tag) |
void | set_mm (shared_data *sd, float label) |
void | noop_mm (shared_data *, float) |
void | compile_gram (std::vector< std::string > grams, std::array< uint32_t, NUM_NAMESPACES > &dest, char *descriptor, bool quiet) |
void | compile_limits (std::vector< std::string > limits, std::array< uint32_t, NUM_NAMESPACES > &dest, bool quiet) |
void | trace_listener_cerr (void *, const std::string &message) |
void binary_print_result | ( | int | f, |
float | res, | ||
float | weight, | ||
v_array< char > | |||
) |
Definition at line 72 of file global_data.cc.
References send_prediction().
Referenced by enable_sources(), vw::get_random_state(), and reset_source().
void compile_gram | ( | std::vector< std::string > | grams, |
std::array< uint32_t, NUM_NAMESPACES > & | dest, | ||
char * | descriptor, | ||
bool | quiet | ||
) |
Definition at line 191 of file global_data.cc.
Referenced by vw::get_random_state(), and parse_feature_tweaks().
void compile_limits | ( | std::vector< std::string > | limits, |
std::array< uint32_t, NUM_NAMESPACES > & | dest, | ||
bool | quiet | ||
) |
Definition at line 216 of file global_data.cc.
Referenced by vw::get_random_state(), and parse_feature_tweaks().
void get_prediction | ( | int | sock, |
float & | res, | ||
float & | weight | ||
) |
Definition at line 52 of file global_data.cc.
References global_prediction::p, really_read(), and global_prediction::weight.
Referenced by vw::get_random_state().
void noop_mm | ( | shared_data * | , |
float | |||
) |
Definition at line 135 of file global_data.cc.
Referenced by vw::get_random_state(), getLossFunction(), parse_example_tweaks(), and predict_or_learn_multi().
void print_raw_text | ( | int | f, |
std::string | s, | ||
v_array< char > | tag | ||
) |
Definition at line 111 of file global_data.cc.
References print_tag(), and io_buf::write_file_or_socket().
Referenced by vw::vw().
void print_result | ( | int | f, |
float | res, | ||
float | , | ||
v_array< char > | tag | ||
) |
Definition at line 91 of file global_data.cc.
References print_tag(), and io_buf::write_file_or_socket().
Referenced by vw::get_random_state(), and vw::vw().
int print_tag | ( | std::stringstream & | ss, |
v_array< char > | tag | ||
) |
Definition at line 81 of file global_data.cc.
References v_array< T >::begin(), v_array< T >::end(), and v_array< T >::size().
Referenced by active_print_result(), confidence_print_result(), vw::get_random_state(), ACTION_SCORE::print_action_score(), print_raw_text(), and print_result().
size_t really_read | ( | int | sock, |
void * | in, | ||
size_t | count | ||
) |
Definition at line 24 of file global_data.cc.
References THROWERRNO.
Referenced by get_prediction().
void send_prediction | ( | int | sock, |
global_prediction | p | ||
) |
Definition at line 60 of file global_data.cc.
References THROWERRNO.
Referenced by binary_print_result().
void set_mm | ( | shared_data * | sd, |
float | label | ||
) |
Definition at line 128 of file global_data.cc.
References shared_data::max_label, and shared_data::min_label.
Referenced by vw::vw().
void trace_listener_cerr | ( | void * | , |
const std::string & | message | ||
) |
Definition at line 240 of file global_data.cc.
Referenced by vw_ostream::vw_ostream().