SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
NativeMulticlassMachine.h
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) 1999-2011 Soeren Sonnenburg
8  * Written (W) 2012 Fernando José Iglesias García and Sergey Lisitsyn
9  * Copyright (C) 2012 Sergey Lisitsyn, Fernando José Iglesias Garcia
10  */
11 
12 #ifndef _NATIVEMULTICLASSMACHINE_H___
13 #define _NATIVEMULTICLASSMACHINE_H___
14 
15 #include <shogun/lib/config.h>
16 
18 
19 namespace shogun
20 {
21 
24 {
25  public:
28  {
29  }
30 
33  {
34  }
35 
37  virtual const char* get_name() const
38  {
39  return "NativeMulticlassMachine";
40  }
41 
42  protected:
44  void init_strategy() { }
45 
47  void clear_machines() { }
48 
50  virtual bool init_machine_for_train(CFeatures* data) { return true; }
51 
53  virtual bool init_machines_for_apply(CFeatures* data) { return true; }
54 
56  virtual bool is_ready() { return true; }
57 
59  virtual CMachine* get_machine_from_trained(CMachine* machine) { return NULL; }
60 
62  virtual int32_t get_num_rhs_vectors() { return 0; }
63 
68  virtual void add_machine_subset(SGVector<index_t> subset) { }
69 
71  virtual void remove_machine_subset() { }
72 
74  virtual bool is_acceptable_machine(CMachine *machine) { return true; }
75 
76 };
77 }
78 #endif
virtual const char * get_name() const
experimental abstract native multiclass machine class
virtual void add_machine_subset(SGVector< index_t > subset)
virtual bool is_acceptable_machine(CMachine *machine)
A generic learning machine interface.
Definition: Machine.h:143
experimental abstract generic multiclass machine class
virtual bool init_machine_for_train(CFeatures *data)
virtual CMachine * get_machine_from_trained(CMachine *machine)
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual bool init_machines_for_apply(CFeatures *data)
The class Features is the base class of all feature objects.
Definition: Features.h:68

SHOGUN Machine Learning Toolbox - Documentation