SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
BaseMulticlassMachine.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 
12 
13 using namespace shogun;
14 
16 {
18 
19  SG_ADD((CSGObject**)&m_machines, "machines", "Machines that jointly make up the multi-class machine.", MS_NOT_AVAILABLE);
20 }
21 
23 {
25 }
26 
28 {
29  return m_machines->get_num_elements();
30 }
31 
33 {
34  return PT_MULTICLASS;
35 }
36 
38 {
39  return lab->get_label_type() == LT_MULTICLASS;
40 }
41 
virtual ELabelType get_label_type() const =0
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
multi-class labels 0,1,...
Definition: LabelTypes.h:20
virtual EProblemType get_machine_problem_type() const
EProblemType
Definition: Machine.h:110
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
Dynamic array class for CSGObject pointers that creates an array that can be used like a list or an a...
virtual bool is_label_valid(CLabels *lab) const
#define SG_UNREF(x)
Definition: SGObject.h:52
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
#define SG_ADD(...)
Definition: SGObject.h:81

SHOGUN Machine Learning Toolbox - Documentation