1 | #region License Information
|
---|
2 | /* HeuristicLab
|
---|
3 | * Copyright (C) 2002-2008 Heuristic and Evolutionary Algorithms Laboratory (HEAL)
|
---|
4 | *
|
---|
5 | * This file is part of HeuristicLab.
|
---|
6 | *
|
---|
7 | * HeuristicLab 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
|
---|
10 | * (at your option) any later version.
|
---|
11 | *
|
---|
12 | * HeuristicLab is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with HeuristicLab. If not, see <http://www.gnu.org/licenses/>.
|
---|
19 | */
|
---|
20 | #endregion
|
---|
21 |
|
---|
22 | using System;
|
---|
23 | using System.Collections.Generic;
|
---|
24 | using System.Linq;
|
---|
25 | using System.Text;
|
---|
26 | using HeuristicLab.DataAnalysis;
|
---|
27 |
|
---|
28 | namespace HeuristicLab.Modeling.Database {
|
---|
29 | public interface IModelingDatabase {
|
---|
30 | void Connect();
|
---|
31 | void EmptyDatabase();
|
---|
32 | void Disconnect();
|
---|
33 |
|
---|
34 | IEnumerable<IModel> GetAllModels();
|
---|
35 | IEnumerable<IVariable> GetAllVariables();
|
---|
36 | IEnumerable<IResult> GetAllResults();
|
---|
37 | IEnumerable<IResult> GetAllResultsForInputVariables();
|
---|
38 | IEnumerable<IMetaData> GetAllMetaData();
|
---|
39 | IEnumerable<IAlgorithm> GetAllAlgorithms();
|
---|
40 |
|
---|
41 | IModel Persist(HeuristicLab.Modeling.IAlgorithm algorithm);
|
---|
42 | IModel Persist(HeuristicLab.Modeling.IAnalyzerModel model, string algorithmName, string algorithmDescription);
|
---|
43 |
|
---|
44 | IModel CreateModel(ModelType modelType, IAlgorithm algorithm, IVariable targetVariable,
|
---|
45 | int trainingSamplesStart, int trainingSamplesEnd, int validationSamplesStart, int validationSamplesEnd, int testSamplesStart, int testSamplesEnd);
|
---|
46 | IModel CreateModel(string modelName, ModelType modelType, IAlgorithm algorithm, IVariable targetVariable,
|
---|
47 | int trainingSamplesStart, int trainingSamplesEnd, int validationSamplesStart, int validationSamplesEnd, int testSamplesStart, int testSamplesEnd);
|
---|
48 | void PersistModel(IModel model);
|
---|
49 | void DeleteModel(IModel model);
|
---|
50 |
|
---|
51 | Dataset GetDataset();
|
---|
52 | void PersistProblem(Dataset dataset);
|
---|
53 | IVariable GetVariable(string variableName);
|
---|
54 |
|
---|
55 | IPredictor GetModelPredictor(IModel model);
|
---|
56 | void PersistPredictor(IModel model, IPredictor predictor);
|
---|
57 |
|
---|
58 | IAlgorithm GetOrPersistAlgorithm(string algorithmName);
|
---|
59 |
|
---|
60 | IResult GetOrPersistResult(string resultName);
|
---|
61 | IMetaData GetOrPersistMetaData(string metaDataName);
|
---|
62 |
|
---|
63 | IEnumerable<IModelResult> GetModelResults(IModel model);
|
---|
64 | IEnumerable<IInputVariableResult> GetInputVariableResults(IModel model);
|
---|
65 | IEnumerable<IModelMetaData> GetModelMetaData(IModel model);
|
---|
66 |
|
---|
67 | IModelResult CreateModelResult(IModel model, IResult result, double value);
|
---|
68 | void PersistModelResults(IModel model, IEnumerable<IModelResult> modelResults);
|
---|
69 | IInputVariableResult CreateInputVariableResult(IInputVariable inputVariable, IResult result, double value);
|
---|
70 | void PersistInputVariableResults(IModel model, IEnumerable<IInputVariableResult> inputVariableResults);
|
---|
71 | IModelMetaData CreateModelMetaData(IModel model, IMetaData metadata, double value);
|
---|
72 | void PersistModelMetaData(IModel model, IEnumerable<IModelMetaData> modelMetaData);
|
---|
73 | IInputVariable CreateInputVariable(IModel model, IVariable variable);
|
---|
74 | }
|
---|
75 | }
|
---|