- Timestamp:
- 09/23/09 14:05:28 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Modeling.Database/3.2/IModelingDatabase.cs
r2355 r2382 28 28 namespace HeuristicLab.Modeling.Database { 29 29 public interface IModelingDatabase { 30 IModel Persist(HeuristicLab.Modeling.IAlgorithm algorithm); 31 IModel Persist(HeuristicLab.Modeling.IAnalyzerModel model, string algorithmName, string algorithmDescription); 32 IProblem PersistProblem(Dataset dataset); 33 34 void UpdateModel(IModel model); 35 void UpdateModelData(IModel model, byte[] modelData); 30 void Connect(); 31 void EmptyDatabase(); 32 void Disconnect(); 36 33 37 34 IEnumerable<IModel> GetAllModels(); 38 IEnumerable<IResult> GetAllResults(); 35 IEnumerable<IVariable> GetAllVariables(); 36 IEnumerable<IResult> GetAllResults(); 39 37 IEnumerable<IResult> GetAllResultsForInputVariables(); 40 38 IEnumerable<IMetaData> GetAllMetaData(); 41 39 IEnumerable<IAlgorithm> GetAllAlgorithms(); 42 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 43 51 Dataset GetDataset(); 44 byte[] GetModelData(IModel model); 52 void PersistProblem(Dataset dataset); 53 IVariable GetVariable(string variableName); 54 45 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 46 63 IEnumerable<IModelResult> GetModelResults(IModel model); 47 64 IEnumerable<IInputVariableResult> GetInputVariableResults(IModel model); 48 65 IEnumerable<IModelMetaData> GetModelMetaData(IModel model); 49 66 50 void Connect(); 51 void EmptyDatabase(); 52 void Disconnect(); 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); 53 73 } 54 74 }
Note: See TracChangeset
for help on using the changeset viewer.