Changeset 2371
- Timestamp:
- 09/21/09 14:15:37 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Common/3.2/HeuristicLab.Common-3.2.csproj
r2367 r2371 84 84 </Compile> 85 85 <Compile Include="EnumerableEventArgs.cs" /> 86 <Compile Include="EventArgs.cs" /> 86 87 <Compile Include="HeuristicLabCommonPlugin.cs" /> 87 88 <Compile Include="NotificationDictionary.cs" /> -
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DataObjects/Model.cs
r2326 r2371 32 32 public Model() { 33 33 targetVariable = default(EntityRef<Variable>); 34 algorithm = default(EntityRef<Algorithm>); 34 algorithm = default(EntityRef<Algorithm>); 35 35 } 36 36 37 public Model(Variable targetVariable, Algorithm algorithm )37 public Model(Variable targetVariable, Algorithm algorithm, ModelType modelType) 38 38 : this() { 39 39 this.targetVariableId = targetVariable.Id; 40 40 this.algorithmId = algorithm.Id; 41 ModelType = modelType.ToString(); 41 42 } 42 43 … … 94 95 } 95 96 97 private string modelType; 98 [Column(Storage = "modelType", CanBeNull = false)] 99 public string ModelType { 100 get { return this.modelType; } 101 private set { this.modelType = value; } 102 } 103 104 ModelType IModel.ModelType { 105 get { 106 if (!Enum.IsDefined(typeof(ModelType), this.modelType)) 107 throw new ArgumentException("ModelType " + modelType + " not declared."); 108 return (ModelType)Enum.Parse(typeof(ModelType), this.modelType); 109 } 110 } 111 96 112 private string name; 97 113 [Column(Storage = "name", CanBeNull = true)] -
trunk/sources/HeuristicLab.Modeling.Database.SQLServerCompact/3.2/DatabaseService.cs
r2370 r2371 84 84 85 85 using (ModelingDataContext ctx = new ModelingDataContext(connection)) { 86 m = new Model(target, algo );86 m = new Model(target, algo,model.Type); 87 87 m.TrainingSamplesStart = model.TrainingSamplesStart; 88 88 m.TrainingSamplesEnd = model.TrainingSamplesEnd; -
trunk/sources/HeuristicLab.Modeling.Database/3.2/IModel.cs
r2326 r2371 29 29 IVariable TargetVariable { get; } 30 30 IAlgorithm Algorithm { get; } 31 ModelType ModelType { get; } 31 32 string Name { get; set; } 32 33 int TrainingSamplesStart { get; } -
trunk/sources/HeuristicLab.Modeling/3.2/AnalyzerModel.cs
r2370 r2371 31 31 public AnalyzerModel() { } // for persistence 32 32 33 #region I Model Members33 #region IAnalyzerModel Members 34 34 35 35 private Dataset dataset;
Note: See TracChangeset
for help on using the changeset viewer.