openModeller  Version 1.5.0
PreJackknife.hh
Go to the documentation of this file.
1 
27 #ifndef _PRE_JACKKNIFE_
28 #define _PRE_JACKKNIFE_
29 
30 #include "PreAlgorithm.hh"
31 
32 #include <openmodeller/Sampler.hh>
34 
38 class dllexp PreJackknife : public PreAlgorithm
39 {
40 public:
44  PreJackknife();
45 
49  ~PreJackknife();
50 
51  //Return description about the algorithm
52  string getDescription() const { return "This technique first generates a model \
53 to calculate a particular measure (accuracy) for the entire layerset. Then for \
54 each layer a new model is generated without that particular layer and the accuracy \
55 is calculated again. All models are trained with the same set of points that are \
56 randomly selected from the specified occurrence points given the specified proportion, \
57 and the accuracy is calculated with the remaining testing points. The algorithm can \
58 also be specified as a parameter."; }
59 
60  //Checks if the supplied parameters fits the requirements of PRE algorithm implementation.
61  //return true if the parameters are OK. false if not.
62  bool checkParameters( const PreParameters& parameters ) const;
63 
64  //Runs the current algorithm implementation.
65  //return true if OK. false on error.
66  bool runImplementation();
67 
68  //Reset the params state to the params_ state.
69  void resetState( PreParameters& params );
70 
71  //get input parameters
72  void getAcceptedParameters ( stringMap& info );
73 
74  //get output information
75  void getLayersetResultSpec ( stringMap& info);
76 
77  //get output information for each layer
78  void getLayerResultSpec ( stringMap& info);
79 
80 };
81 
82 #endif
string getDescription() const
Definition: PreJackknife.hh:52
virtual void getLayersetResultSpec(stringMap &info)=0
virtual bool runImplementation()=0
virtual void getLayerResultSpec(stringMap &info)=0
AlgParamMetadata parameters[NUM_PARAM]
Definition: garp.cpp:55
void resetState(PreParameters &params)
virtual void getAcceptedParameters(stringMap &info)=0
virtual bool checkParameters(const PreParameters &parameters) const =0