BALL  1.4.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
configIO.h
Go to the documentation of this file.
1 /* configIO.h
2  *
3  * Copyright (C) 2009 Marcel Schumann
4  *
5  * This file is part of QuEasy -- A Toolbox for Automated QSAR Model
6  * Construction and Validation.
7  * QuEasy is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 3 of the License, or (at
10  * your option) any later version.
11  *
12  * QuEasy is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, see <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef CONFIG_IO_H
22 #define CONFIG_IO_H
23 
24 #include <istream>
25 #include <BALL/DATATYPE/string.h>
26 #include <istream>
27 #include <set>
28 
29 namespace BALL
30 {
31  namespace QSAR
32  {
34  {
36 
38  std::multiset<int> activities;
41  bool center_y;
46  vector<String> csv_file;
47  vector<int> csv_no_response;
48  vector<bool> csv_desc_labels;
49  vector<bool> csv_compound_labels;
50  vector<String> csv_separator;
52  bool done;
53  };
54 
56  {
58 
61  int no_folds;
62  int ID;
63  bool done;
64  };
65 
67  {
69 
70  bool done;
74  vector<double> model_parameters;
75  int model_no;
77  double kernel_par1;
78  double kernel_par2;
79  int k_fold;
86  };
87 
89  {
91 
94  int feat_type;
96  int k_fold;
106  bool opt;
107  bool done;
112  };
113 
115  {
117 
121  int val_type;
123  int k_folds;
128  vector<String> external_predictions;
130  bool done;
131  };
132 
134  {
136 
143  bool done;
144  };
145 
146 
148  {
149  public:
150 
151  static void putbackLine(std::istream* input,String& line);
152 
153  static ModelConfiguration readModelConfiguration(std::istream* input);
154 
155  static FeatureSelectionConfiguration readFeatureSelectionConfiguration(std::istream* input);
156 
157  static InputConfiguration readInputConfiguration(std::istream* input);
158 
159  static InputPartitioningConfiguration readInputPartitioningConfiguration(std::istream* input);
160 
161  static ValidationConfiguration readValidationConfiguration(std::istream* input);
162 
163  static PredictionConfiguration readPredictionConfiguration(std::istream* input);
164  };
165  }
166 }
167 
168 
169 #endif // CONFIG_IO_H