SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
DirectorStructuredModel.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  * Copyright (C) 2012 Sergey Lisitsyn
8  */
9 
10 #ifndef DIRECTOR_STRUCTURED_MODEL_H_
11 #define DIRECTOR_STRUCTURED_MODEL_H_
12 
13 #include <shogun/lib/config.h>
14 
15 #ifdef USE_SWIG_DIRECTORS
17 
18 namespace shogun
19 {
20 
21 class CStructuredModel;
22 
23 #define IGNORE_IN_CLASSLIST
24 
31 IGNORE_IN_CLASSLIST class CDirectorStructuredModel : public CStructuredModel
32 {
33  public:
35  CDirectorStructuredModel();
36 
38  virtual ~CDirectorStructuredModel();
39 
44  virtual int32_t get_dim() const;
45 
58  virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, CStructuredData* y);
59 
73  virtual CResultSet* argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training = true);
74 
82  virtual float64_t delta_loss(CStructuredData* y1, CStructuredData* y2);
83 
91  virtual bool check_training_setup() const;
92 
103  virtual void init_primal_opt(
104  float64_t regularization,
108  SGMatrix < float64_t > & C);
109 
111  virtual const char* get_name() const { return "DirectorStructuredModel"; }
112 
114  virtual void init_training();
115 
116 }; /* class CDirectorStructuredModel */
117 } /* namespace shogun */
118 #endif /* USE_SWIG_DIRECTORS */
119 #endif /* DIRECTOR_STRUCTURED_MODEL_H_ */
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
#define IGNORE_IN_CLASSLIST
Definition: CPLEXSVM.h:24

SHOGUN Machine Learning Toolbox - Documentation