SHOGUN
v3.2.0
|
00001 /* 00002 * This program is free software; you can redistribute it and/or modify 00003 * it under the terms of the GNU General Public License as published by 00004 * the Free Software Foundation; either version 3 of the License, or 00005 * (at your option) any later version. 00006 * 00007 * Written (W) 2012 Chiyuan Zhang 00008 * Copyright (C) 2012 Chiyuan Zhang 00009 */ 00010 00011 #ifndef BASEMULTICLASSMACHINE_H__ 00012 #define BASEMULTICLASSMACHINE_H__ 00013 00014 #include <shogun/machine/Machine.h> 00015 00016 namespace shogun 00017 { 00018 00019 class CMachine; 00020 00023 class CBaseMulticlassMachine: public CMachine 00024 { 00025 public: 00027 CBaseMulticlassMachine(); 00028 00030 virtual ~CBaseMulticlassMachine(); 00031 00033 virtual const char* get_name() const { return "BaseMulticlassMachine"; } 00034 00039 int32_t get_num_machines() const; 00040 00042 virtual EProblemType get_machine_problem_type() const; 00043 00048 virtual bool is_label_valid(CLabels *lab) const; 00049 00050 protected: 00051 00053 CDynamicObjectArray *m_machines; 00054 }; 00055 00056 } /* shogun */ 00057 00058 #endif /* end of include guard: BASEMULTICLASSMACHINE_H__ */ 00059