blob: 738de421ad2c06f711b8a32f579024ef1fcd1c4e (
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_multiclass_example(vw& all, example& ec);
inline int label_is_test(multiclass* ld)
{ return ld->label == (uint32_t)-1; }
}
|