Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef DIRECTOR_STRUCTURED_MODEL_H_
00011 #define DIRECTOR_STRUCTURED_MODEL_H_
00012
00013 #include <shogun/structure/StructuredModel.h>
00014 #include <shogun/lib/config.h>
00015 #ifdef USE_SWIG_DIRECTORS
00016 namespace shogun
00017 {
00018
00019 class CStructuredModel;
00020
00021 #define IGNORE_IN_CLASSLIST
00022
00029 IGNORE_IN_CLASSLIST class CDirectorStructuredModel : public CStructuredModel
00030 {
00031 public:
00033 CDirectorStructuredModel();
00034
00036 virtual ~CDirectorStructuredModel();
00037
00042 virtual int32_t get_dim() const;
00043
00056 virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, int32_t lab_idx);
00057
00070 virtual SGVector< float64_t > get_joint_feature_vector(int32_t feat_idx, CStructuredData* y);
00071
00085 virtual CResultSet* argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training = true);
00086
00094 virtual float64_t delta_loss(int32_t ytrue_idx, CStructuredData* ypred);
00095
00103 virtual float64_t delta_loss(CStructuredData* y1, CStructuredData* y2);
00104
00105 using CStructuredModel::risk;
00106
00108 virtual const char* get_name() const { return "DirectorStructuredModel"; }
00109
00110 };
00111 }
00112 #endif
00113 #endif