GUIPluginEstimate.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) 1999-2008 Soeren Sonnenburg
00008  * Written (W) 1999-2008 Gunnar Raetsch
00009  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
00010  */
00011 
00012 #ifndef _GUIPLUGINESTIMATE_H__
00013 #define _GUIPLUGINESTIMATE_H__ 
00014 
00015 #include <shogun/lib/config.h>
00016 #include <shogun/base/SGObject.h>
00017 #include <shogun/classifier/PluginEstimate.h>
00018 #include <shogun/features/Labels.h>
00019 
00020 namespace shogun
00021 {
00022 class CSGInterface;
00023 
00025 class CGUIPluginEstimate : public CSGObject
00026 {
00027 
00028     public:
00030         CGUIPluginEstimate() {};
00034         CGUIPluginEstimate(CSGInterface* interface);
00036         ~CGUIPluginEstimate();
00037 
00039         bool new_estimator(float64_t pos, float64_t neg);
00041         bool train();
00045         bool marginalized_train(char* param);
00049         bool load(char* param);
00053         bool save(char* param);
00054 
00056         inline CPluginEstimate* get_estimator() { return estimator; }
00057 
00059         CLabels* apply();
00063         float64_t apply(int32_t idx);
00064 
00066         inline virtual const char* get_name() const { return "GUIPluginEstimate"; }
00067 
00068     protected:
00070         CSGInterface* ui;
00072         CPluginEstimate* estimator;
00074         float64_t pos_pseudo;
00076         float64_t neg_pseudo;
00077 };
00078 }
00079 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

SHOGUN Machine Learning Toolbox - Documentation