SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
GUIPluginEstimate.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2008 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Copyright (C) 1999-2008 Fraunhofer Institute FIRST and Max-Planck-Society
10  */
11 
12 #ifndef _GUIPLUGINESTIMATE_H__
13 #define _GUIPLUGINESTIMATE_H__
14 
15 #include <shogun/lib/config.h>
16 #include <shogun/base/SGObject.h>
18 #include <shogun/labels/Labels.h>
19 
20 namespace shogun
21 {
22 class CSGInterface;
23 
26 {
27 
28  public:
34  CGUIPluginEstimate(CSGInterface* interface);
37 
39  bool new_estimator(float64_t pos, float64_t neg);
41  bool train();
45  bool marginalized_train(char* param);
49  bool load(char* param);
53  bool save(char* param);
54 
56  inline CPluginEstimate* get_estimator() { return estimator; }
57 
59  CLabels* apply();
63  float64_t apply_one(int32_t idx);
64 
66  virtual const char* get_name() const { return "GUIPluginEstimate"; }
67 
68  private:
69  void init();
70 
71  protected:
73  CSGInterface* ui;
80 };
81 }
82 #endif
CSGInterface * interface
Definition: SGInterface.cpp:45
The class Labels models labels, i.e. class assignments of objects.
Definition: Labels.h:43
bool marginalized_train(char *param)
bool new_estimator(float64_t pos, float64_t neg)
float64_t apply_one(int32_t idx)
Class SGObject is the base class of all shogun objects.
Definition: SGObject.h:112
double float64_t
Definition: common.h:50
virtual const char * get_name() const
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
class PluginEstimate
CPluginEstimate * get_estimator()

SHOGUN Machine Learning Toolbox - Documentation