CrossValidationMKLStorage.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 Heiko Strathmann
00008  *
00009  */
00010 
00011 #ifndef __CROSSVALIDATIONMKLSTORAGE_H_
00012 #define __CROSSVALIDATIONMKLSTORAGE_H_
00013 
00014 #include <shogun/evaluation/CrossValidationOutput.h>
00015 #include <shogun/lib/SGMatrix.h>
00016 
00017 namespace shogun
00018 {
00019 
00020 class CMachine;
00021 class CLabels;
00022 class CEvaluation;
00023 
00025 class CCrossValidationMKLStorage: public CCrossValidationOutput
00026 {
00027 public:
00028 
00030     CCrossValidationMKLStorage() : CCrossValidationOutput() {}
00031 
00033     virtual ~CCrossValidationMKLStorage() {};
00034 
00036     virtual const char* get_name() const { return "CrossValidationMKLStorage"; }
00037 
00043     virtual void update_trained_machine(CMachine* machine,
00044             const char* prefix="");
00045 
00048     virtual SGMatrix<float64_t> get_mkl_weights() { return m_mkl_weights; }
00049 
00050 protected:
00054     SGMatrix<float64_t> m_mkl_weights;
00055 };
00056 
00057 }
00058 
00059 #endif /* __CROSSVALIDATIONMKLSTORAGE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation