SHOGUN  v3.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
DirectorStructuredModel.cpp
Go to the documentation of this file.
00001 /*
00002  * This program is free software; you can redistribute it and/or modify
00003  * it under the terms of the GNU General Public License as published by
00004  * the Free Software Foundation; either version 3 of the License, or
00005  * (at your option) any later version.
00006  *
00007  * Copyright (C) 2012 Sergey Lisitsyn
00008  */
00009 
00010 #include <shogun/structure/DirectorStructuredModel.h>
00011 
00012 #ifdef USE_SWIG_DIRECTORS
00013 
00014 using namespace shogun;
00015 
00016 CDirectorStructuredModel::CDirectorStructuredModel() : CStructuredModel()
00017 {
00018 }
00019 
00020 CDirectorStructuredModel::~CDirectorStructuredModel()
00021 {
00022 }
00023 
00024 int32_t CDirectorStructuredModel::get_dim() const
00025 {
00026     SG_ERROR("Please implemement get_dim() in your target language before use\n")
00027     return 0;
00028 }
00029 
00030 CResultSet* CDirectorStructuredModel::argmax(SGVector< float64_t > w, int32_t feat_idx, bool const training)
00031 {
00032     SG_ERROR("Please implemement argmax(w,feat_idx,lab_idx,training) in your target language before use\n")
00033     return NULL;
00034 }
00035 
00036 SGVector< float64_t > CDirectorStructuredModel::get_joint_feature_vector(
00037         int32_t feat_idx,
00038         CStructuredData* y)
00039 {
00040     SG_ERROR("Please implemement get_joint_feature_vector(feat_idx,y) in your target language before use\n")
00041     return SGVector<float64_t>();
00042 }
00043 
00044 float64_t CDirectorStructuredModel::delta_loss(CStructuredData* y1, CStructuredData* y2)
00045 {
00046     SG_ERROR("Please implemement delta_loss(y1,y2) in your target language before use\n")
00047     return 0.0;
00048 }
00049 
00050 bool CDirectorStructuredModel::check_training_setup() const
00051 {
00052     SG_ERROR("Please implemement check_trainig_setup() in your target language before use\n")
00053     return false;
00054 }
00055 
00056 void CDirectorStructuredModel::init_primal_opt(
00057         float64_t regularization,
00058         SGMatrix< float64_t > & A,
00059         SGVector< float64_t > a,
00060         SGMatrix< float64_t > B,
00061         SGVector< float64_t > & b,
00062         SGVector< float64_t > lb,
00063         SGVector< float64_t > ub,
00064         SGMatrix< float64_t > & C)
00065 {
00066     SG_ERROR("Please implemement init_primal_opt(regularization,A,a,B,b,lb,ub,C) in your target language before use\n")
00067 }
00068 
00069 void CDirectorStructuredModel::init_training()
00070 {
00071     SG_ERROR("Please implemement init_training() in your target language before use\n")
00072 }
00073 
00074 #endif /* USE_SWIG_DIRECTORS */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation