/* 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 label_t { uint32_t label; float weight; }; extern label_parser mc_label; void print_update_with_probability(vw& all, example& ec, uint32_t prediction); void print_update_with_score(vw& all, example& ec, uint32_t prediction); void finish_example(vw& all, example& ec, bool update_loss); template void finish_example(vw& all, T&, example& ec) { finish_example(all, ec, true); } template void finish_example_without_loss(vw& all, T&, example& ec) { finish_example(all, ec, false); } } // namespace MULTICLASS