SHOGUN
v3.2.0
|
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 Viktor Gal 00008 */ 00009 00010 #ifndef _DIRECTOR_LATENT_MODEL_H_ 00011 #define _DIRECTOR_LATENT_MODEL_H_ 00012 00013 #include <shogun/latent/LatentModel.h> 00014 #include <shogun/lib/config.h> 00015 #ifdef USE_SWIG_DIRECTORS 00016 namespace shogun 00017 { 00018 00019 class CLatentModel; 00020 00021 #define IGNORE_IN_CLASSLIST 00022 00029 IGNORE_IN_CLASSLIST class CDirectorLatentModel : public CLatentModel 00030 { 00031 public: 00033 CDirectorLatentModel(); 00034 00036 virtual ~CDirectorLatentModel(); 00037 00042 virtual int32_t get_dim() const; 00043 00048 virtual CDotFeatures* get_psi_feature_vectors(); 00049 00058 virtual CData* infer_latent_variable(const SGVector<float64_t>& w, index_t idx); 00059 00065 virtual void argmax_h(const SGVector<float64_t>& w); 00066 00068 virtual const char* get_name() const { return "DirectorLatentModel"; } 00069 00070 }; /* class CDirectorLatentModel */ 00071 } /* namespace shogun */ 00072 #endif /* USE_SWIG_DIRECTORS */ 00073 #endif /* _DIRECTOR_LATENT_MODEL_H_ */ 00074