Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/23/09 14:05:28 (15 years ago)
Author:
mkommend
Message:

refactored modeling database to enable the change of models (ticket #759)

Location:
trunk/sources/HeuristicLab.Modeling.Database/3.2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/HeuristicLab.Modeling.Database-3.2.csproj

    r2355 r2382  
    8484    <Compile Include="IMetaData.cs" />
    8585    <Compile Include="IModelMetaData.cs" />
    86     <Compile Include="IProblem.cs" />
    8786    <Compile Include="IVariable.cs" />
    8887    <Compile Include="IInputVariable.cs" />
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/IInputVariableResult.cs

    r2223 r2382  
    3030    IVariable Variable { get; }
    3131    IResult Result { get; }
    32     double Value { get; }
     32    double Value { get; set; }
    3333  }
    3434}
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/IModel.cs

    r2371 r2382  
    3636    int ValidationSamplesEnd { get; }
    3737    int TestSamplesStart { get; }
    38     int TestSamplesEnd { get; }
     38    int TestSamplesEnd { get; }   
    3939  }
    4040}
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/IModelMetaData.cs

    r2355 r2382  
    2929    IMetaData MetaData { get; }
    3030    IModel Model { get; }
    31     double Value { get; }
     31    double Value { get; set; }
    3232  }
    3333}
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/IModelResult.cs

    r2223 r2382  
    2929    IResult Result { get; }
    3030    IModel Model { get; }
    31     double Value { get; }
     31    double Value { get; set; }
    3232  }
    3333}
  • trunk/sources/HeuristicLab.Modeling.Database/3.2/IModelingDatabase.cs

    r2355 r2382  
    2828namespace HeuristicLab.Modeling.Database {
    2929  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();
    3633
    3734    IEnumerable<IModel> GetAllModels();
    38     IEnumerable<IResult> GetAllResults();   
     35    IEnumerable<IVariable> GetAllVariables();
     36    IEnumerable<IResult> GetAllResults();
    3937    IEnumerable<IResult> GetAllResultsForInputVariables();
    4038    IEnumerable<IMetaData> GetAllMetaData();
    4139    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
    4351    Dataset GetDataset();
    44     byte[] GetModelData(IModel model);
     52    void PersistProblem(Dataset dataset);
     53    IVariable GetVariable(string variableName);
     54
    4555    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
    4663    IEnumerable<IModelResult> GetModelResults(IModel model);
    4764    IEnumerable<IInputVariableResult> GetInputVariableResults(IModel model);
    4865    IEnumerable<IModelMetaData> GetModelMetaData(IModel model);
    4966
    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);
    5373  }
    5474}
Note: See TracChangeset for help on using the changeset viewer.