SHOGUN  v3.2.0
NativeMulticlassMachine.h
浏览该文件的文档.
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 
16 
17 namespace shogun
18 {
19 
22 {
23  public:
26  {
27  }
28 
31  {
32  }
33 
35  virtual const char* get_name() const
36  {
37  return "NativeMulticlassMachine";
38  }
39 
40  protected:
42  void init_strategy() { }
43 
45  void clear_machines() { }
46 
48  virtual bool init_machine_for_train(CFeatures* data) { return true; }
49 
51  virtual bool init_machines_for_apply(CFeatures* data) { return true; }
52 
54  virtual bool is_ready() { return true; }
55 
57  virtual CMachine* get_machine_from_trained(CMachine* machine) { return NULL; }
58 
60  virtual int32_t get_num_rhs_vectors() { return 0; }
61 
66  virtual void add_machine_subset(SGVector<index_t> subset) { }
67 
69  virtual void remove_machine_subset() { }
70 
72  virtual bool is_acceptable_machine(CMachine *machine) { return true; }
73 
74 };
75 }
76 #endif
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:138
experimental abstract generic multiclass machine class
virtual const char * get_name() const
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:16
virtual bool init_machines_for_apply(CFeatures *data)
The class Features is the base class of all feature objects.
Definition: Features.h:62

SHOGUN Machine Learning Toolbox - Documentation