File: automaticModelCreator.h

package info (click to toggle)
ball 1.5.0%2Bgit20180813.37fc53c-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 239,888 kB
  • sloc: cpp: 326,149; ansic: 4,208; python: 2,303; yacc: 1,778; lex: 1,099; xml: 958; sh: 322; makefile: 95
file content (41 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <BALL/COMMON/global.h>
#include <BALL/QSAR/Model.h>
#include <BALL/QSAR/QSARData.h>

namespace BALL
{
	namespace QSAR
	{
		/** A class for automatic creation of the most appropriate QSAR model.\n
		All available model-types are therefore evaluated using nested cross-validation and several successive feature selection steps. */

		class BALL_EXPORT AutomaticModelCreator
		{
			public:

				AutomaticModelCreator(const QSARData* data);

				/** Start the search for most appropriate QSAR model for the current data. \n
				All available model-types are therefore evaluated using nested cross-validation and several successive feature selection steps. \n
				The model that obtained the highest nested prediction quality (>min_quality_) will be returned by this function. \n
				If no model achieved a quality higher than min_quality_, 0 will be returned. */
				Model* generateModel();

				void setData(const QSARData* data);

				void setMinQuality(double min_quality);

			private:

				void optimizeParameters(Model* model);

				void selectFeatures(Model* model);

				const QSARData* data_;

				double min_quality_;
		};

	}
}