SHOGUN  v2.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 
14 #include <shogun/lib/config.h>
15 #ifdef USE_SWIG_DIRECTORS
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  SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, int32_t lab_idx);
57 
70  virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, CStructuredData* y);
71 
85  virtual CResultSet* argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training = true);
86 
94  float64_t delta_loss(int32_t ytrue_idx, CStructuredData* ypred);
95 
103  virtual float64_t delta_loss(CStructuredData* y1, CStructuredData* y2);
104 
106 
108  virtual const char* get_name() const { return "DirectorStructuredModel"; }
109 
110 }; /* class CDirectorStructuredModel */
111 } /* namespace shogun */
112 #endif /* USE_SWIG_DIRECTORS */
113 #endif /* DIRECTOR_STRUCTURED_MODEL_H_ */

SHOGUN Machine Learning Toolbox - Documentation