- Timestamp:
- 07/27/11 15:31:51 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Regression/RegressionEnsembleModel.cs
r6520 r6603 34 34 public class RegressionEnsembleModel : NamedItem, IRegressionEnsembleModel { 35 35 36 [Storable]37 36 private List<IRegressionModel> models; 38 37 public IEnumerable<IRegressionModel> Models { 39 38 get { return new List<IRegressionModel>(models); } 40 39 } 40 41 [Storable(Name = "Models")] 42 private IEnumerable<IRegressionModel> StorableModels { 43 get { return models; } 44 set { models = value.ToList(); } 45 } 46 47 #region backwards compatiblity 3.3.5 48 [Storable(Name = "models", AllowOneWay = true)] 49 private List<IRegressionModel> OldStorableModels { 50 set { models = value; } 51 } 52 #endregion 53 41 54 [StorableConstructor] 42 55 protected RegressionEnsembleModel(bool deserializing) : base(deserializing) { } … … 83 96 } 84 97 98 public RegressionEnsembleSolution CreateRegressionSolution(IRegressionProblemData problemData) { 99 return new RegressionEnsembleSolution(this.Models, problemData); 100 } 101 IRegressionSolution IRegressionModel.CreateRegressionSolution(IRegressionProblemData problemData) { 102 return CreateRegressionSolution(problemData); 103 } 104 85 105 #endregion 86 106 }
Note: See TracChangeset
for help on using the changeset viewer.