blob: f48efbfcc4021c88ec0bb90b8c0f9759a0de4f63 (
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
|
/*
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.
*/
#pragma once
#include "label_parser.h"
struct example;
struct vw;
namespace MULTICLASS
{
struct multiclass {
uint32_t label;
float weight;
};
extern label_parser mc_label;
void finish_example(vw& all, example& ec);
inline int label_is_test(multiclass* ld)
{ return ld->label == (uint32_t)-1; }
}
|