SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MulticlassStrategy.cpp
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 2012 Chiyuan Zhang
8  * Copyright (C) 2012 Chiyuan Zhang
9  */
10 
13 
14 using namespace shogun;
15 
16 
18  : m_rejection_strategy(NULL), m_train_labels(NULL), m_orig_labels(NULL), m_train_iter(0)
19 {
20  SG_ADD((CSGObject**)&m_rejection_strategy, "rejection_strategy", "Strategy of rejection", MS_NOT_AVAILABLE);
21  SG_ADD(&m_num_classes, "num_classes", "Number of classes", MS_NOT_AVAILABLE);
22 }
23 
25 {
26  if (m_train_labels != NULL)
27  SG_ERROR("Stop the previous training task before starting a new one!");
28  SG_REF(train_labels);
29  m_train_labels=train_labels;
30  SG_REF(orig_labels);
31  m_orig_labels=orig_labels;
32  m_train_iter=0;
33 }
34 
36 {
37  m_train_iter++;
38  return SGVector<int32_t>();
39 }
40 
42 {
45  m_train_labels = NULL;
46  m_orig_labels = NULL;
47 }

SHOGUN Machine Learning Toolbox - Documentation