Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/13/09 17:28:07 (15 years ago)
Author:
gkronber
Message:

Worked on #722 (IModel should provide a Predict() method to get predicted values for an input vector).
At the same time removed parameter PunishmentFactor from GP algorithms (this parameter is internal to TreeEvaluators now).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs

    r2278 r2285  
    7272    }
    7373
    74     public void Persist(HeuristicLab.Modeling.IModel model, string algorithmName, string algorithmDescription) {
     74    public void Persist(HeuristicLab.Modeling.IAnalyzerModel model, string algorithmName, string algorithmDescription) {
    7575      Dictionary<string, Variable> variables = GetAllVariables();
    7676      Algorithm algo = GetOrCreateAlgorithm(algorithmName, algorithmDescription);
     
    9393
    9494      using (ModelingDataContext ctx = new ModelingDataContext(connection)) {
    95         ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Data)));
     95        ctx.ModelData.InsertOnSubmit(new ModelData(m, PersistenceManager.SaveToGZip(model.Predictor)));
    9696        ctx.SubmitChanges();
    9797      }
Note: See TracChangeset for help on using the changeset viewer.