Welcome to mirror list, hosted at ThFree Co, Russian Federation.

simple_label.h « vowpalwabbit - github.com/moses-smt/vowpal_wabbit.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 19aa2ed5bf685846dbc79867f62dcaa3516741d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved.  Released under a BSD
license as described in the file LICENSE.
 */
#ifndef SIMPLE_LABEL_H
#define SIMPLE_LABEL_H

#include "io_buf.h"
#include "parse_primitives.h"
#include "global_data.h"
#include "example.h"

struct label_data {
  float label;
  float weight;
  float initial;
  float prediction;
};

void return_simple_example(vw& all, void*, example& ec);

extern label_parser simple_label;

float query_decision(vw& all, example& ec, float k);
bool summarize_holdout_set(vw& all, size_t& no_win_counter);
void print_update(vw& all, example &ec);

#endif