SHOGUN  3.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DirectorStructuredModel.cpp
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 
11 
12 #ifdef USE_SWIG_DIRECTORS
13 
14 using namespace shogun;
15 
16 CDirectorStructuredModel::CDirectorStructuredModel() : CStructuredModel()
17 {
18 }
19 
20 CDirectorStructuredModel::~CDirectorStructuredModel()
21 {
22 }
23 
24 int32_t CDirectorStructuredModel::get_dim() const
25 {
26  SG_ERROR("Please implemement get_dim() in your target language before use\n")
27  return 0;
28 }
29 
30 CResultSet* CDirectorStructuredModel::argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training)
31 {
32  SG_ERROR("Please implemement argmax(w,feat_idx,lab_idx,training) in your target language before use\n")
33  return NULL;
34 }
35 
36 SGVector< float64_t > CDirectorStructuredModel::get_joint_feature_vector(
37  int32_t feat_idx,
38  CStructuredData* y)
39 {
40  SG_ERROR("Please implemement get_joint_feature_vector(feat_idx,y) in your target language before use\n")
41  return SGVector<float64_t>();
42 }
43 
44 float64_t CDirectorStructuredModel::delta_loss(CStructuredData* y1, CStructuredData* y2)
45 {
46  SG_ERROR("Please implemement delta_loss(y1,y2) in your target language before use\n")
47  return 0.0;
48 }
49 
50 bool CDirectorStructuredModel::check_training_setup() const
51 {
52  SG_ERROR("Please implemement check_trainig_setup() in your target language before use\n")
53  return false;
54 }
55 
56 void CDirectorStructuredModel::init_primal_opt(
57  float64_t regularization,
58  SGMatrix< float64_t > & A,
59  SGVector< float64_t > a,
60  SGMatrix< float64_t > B,
61  SGVector< float64_t > & b,
62  SGVector< float64_t > & lb,
63  SGVector< float64_t > & ub,
64  SGMatrix< float64_t > & C)
65 {
66  SG_ERROR("Please implemement init_primal_opt(regularization,A,a,B,b,lb,ub,C) in your target language before use\n")
67 }
68 
69 void CDirectorStructuredModel::init_training()
70 {
71  SG_ERROR("Please implemement init_training() in your target language before use\n")
72 }
73 
74 #endif /* USE_SWIG_DIRECTORS */

SHOGUN Machine Learning Toolbox - Documentation