LatentSOSVM.h

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  * Written (W) 2012 Viktor Gal
00008  * Copyright (C) 2012 Viktor Gal
00009  */
00010 
00011 #ifndef __LATENTSOSVM_H__
00012 #define __LATENTSOSVM_H__
00013 
00014 #include <shogun/machine/LinearLatentMachine.h>
00015 #include <shogun/machine/LinearStructuredOutputMachine.h>
00016 
00017 namespace shogun
00018 {
00023     class CLatentSOSVM: public CLinearLatentMachine
00024     {
00025         public:
00027             CLatentSOSVM();
00028 
00035             CLatentSOSVM(CLatentModel* model, CLinearStructuredOutputMachine* so_solver, float64_t C);
00036 
00037             virtual ~CLatentSOSVM();
00038 
00043             virtual CLatentLabels* apply_latent();
00044 
00049             void set_so_solver(CLinearStructuredOutputMachine* so);
00050 
00055             virtual const char* get_name() const { return "LatentSOSVM"; }
00056 
00057         protected:
00062             virtual float64_t do_inner_loop(float64_t cooling_eps);
00063 
00064         private:
00065             void register_parameters();
00066 
00067         private:
00069             CLinearStructuredOutputMachine* m_so_solver;
00070     };
00071 }
00072 
00073 #endif /* __LATENTSOSVM_H__ */
00074 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation