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 * Written (W) 2012 Viktor Gal 00008 * Copyright (C) 2012 Viktor Gal 00009 */ 00010 00011 #ifndef __LATENTSVM_H__ 00012 #define __LATENTSVM_H__ 00013 00014 #include <shogun/lib/common.h> 00015 #include <shogun/machine/LinearLatentMachine.h> 00016 00017 namespace shogun 00018 { 00032 class CLatentSVM: public CLinearLatentMachine 00033 { 00034 public: 00036 CLatentSVM(); 00037 00043 CLatentSVM(CLatentModel* model, float64_t C); 00044 00045 virtual ~CLatentSVM(); 00046 00051 virtual CLatentLabels* apply_latent(); 00052 00053 using CLinearLatentMachine::apply_latent; 00054 00059 virtual const char* get_name() const { return "LatentSVM"; } 00060 00061 protected: 00071 virtual float64_t do_inner_loop(float64_t cooling_eps); 00072 }; 00073 } 00074 00075 #endif /* __LATENTSVM_H__ */ 00076