BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
configIO.h
Go to the documentation of this file.
1 // -*- Mode: C++; tab-width: 2; -*-
2 // vi: set ts=2:
3 //
4 
5 #ifndef BALL_QSAR_CONFIGIO_H
6 #define BALL_QSAR_CONFIGIO_H
7 
8 #ifndef BALL_DATATYPE_STRING_H
9 #include <BALL/DATATYPE/string.h>
10 #endif
11 
12 #include <istream>
13 #include <set>
14 
15 namespace BALL
16 {
17  namespace QSAR
18  {
20  {
22 
24  std::multiset<int> activities;
25  std::set<String> activity_names;
28  bool center_y;
33  vector<String> csv_file;
34  vector<int> csv_no_response;
35  vector<bool> csv_desc_labels;
36  vector<bool> csv_compound_labels;
37  vector<String> csv_separator;
39  bool done;
40  };
41 
43  {
45 
48  int no_folds;
49  bool even_split;
50  int ID;
51  bool done;
52  };
53 
55  {
57 
58  bool done;
62  vector<double> model_parameters;
63  int model_no;
65  double kernel_par1;
66  double kernel_par2;
67  int k_fold;
74  };
75 
77  {
79 
82  int feat_type;
84  int k_fold;
88  int statistic;
90  double cor_threshold;
94  bool opt;
95  bool done;
100  };
101 
103  {
105 
109  int val_type;
111  int k_folds;
116  vector<String> external_predictions;
118  bool done;
119  };
120 
122  {
124 
131  bool done;
132  };
133 
134 
136  {
137  public:
138 
139  static void putbackLine(std::istream* input,String& line);
140 
141  static ModelConfiguration readModelConfiguration(std::istream* input);
142 
143  static FeatureSelectionConfiguration readFeatureSelectionConfiguration(std::istream* input);
144 
145  static InputConfiguration readInputConfiguration(std::istream* input);
146 
147  static InputPartitioningConfiguration readInputPartitioningConfiguration(std::istream* input);
148 
149  static ValidationConfiguration readValidationConfiguration(std::istream* input);
150 
151  static PredictionConfiguration readPredictionConfiguration(std::istream* input);
152  };
153  }
154 }
155 
156 
157 #endif // BALL_QSAR_CONFIGIO_H
vector< String > csv_separator
Definition: configIO.h:37
vector< String > external_predictions
Definition: configIO.h:116
vector< double > model_parameters
Definition: configIO.h:62
vector< int > csv_no_response
Definition: configIO.h:34
std::multiset< int > activities
Definition: configIO.h:24
vector< String > csv_file
Definition: configIO.h:33
vector< bool > csv_desc_labels
Definition: configIO.h:35
vector< bool > csv_compound_labels
Definition: configIO.h:36
std::set< String > activity_names
Definition: configIO.h:25
#define BALL_EXPORT
Definition: COMMON/global.h:50