SHOGUN  v3.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 #ifdef USE_SWIG_DIRECTORS
15 #include <shogun/lib/config.h>
16 namespace shogun
17 {
18 
19 class CStructuredModel;
20 
21 #define IGNORE_IN_CLASSLIST
22 
29 IGNORE_IN_CLASSLIST class CDirectorStructuredModel : public CStructuredModel
30 {
31  public:
33  CDirectorStructuredModel();
34 
36  virtual ~CDirectorStructuredModel();
37 
42  virtual int32_t get_dim() const;
43 
56  virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, CStructuredData* y);
57 
71  virtual CResultSet* argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training = true);
72 
80  virtual float64_t delta_loss(CStructuredData* y1, CStructuredData* y2);
81 
89  virtual bool check_training_setup() const;
90 
101  virtual void init_primal_opt(
102  float64_t regularization,
103  SGMatrix< float64_t > & A, SGVector< float64_t > a,
104  SGMatrix< float64_t > B, SGVector< float64_t > & b,
105  SGVector< float64_t > lb, SGVector< float64_t > ub,
106  SGMatrix < float64_t > & C);
107 
109  virtual const char* get_name() const { return "DirectorStructuredModel"; }
110 
112  virtual void init_training();
113 
114 }; /* class CDirectorStructuredModel */
115 } /* namespace shogun */
116 #endif /* USE_SWIG_DIRECTORS */
117 #endif /* DIRECTOR_STRUCTURED_MODEL_H_ */

SHOGUN Machine Learning Toolbox - Documentation