Changeset 14330 for branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 10/13/16 19:47:41 (8 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
- Property svn:mergeinfo changed
/trunk/sources merged: 14282,14284-14300,14307,14314-14316,14319,14322
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification (added) merged: 14289-14290
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs
r14185 r14330 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; … … 34 35 public abstract class SymbolicClassificationModel : SymbolicDataAnalysisModel, ISymbolicClassificationModel { 35 36 [Storable] 36 private readonlystring targetVariable;37 private string targetVariable; 37 38 public string TargetVariable { 38 39 get { return targetVariable; } 40 set { 41 if (string.IsNullOrEmpty(value) || targetVariable == value) return; 42 targetVariable = value; 43 OnTargetVariableChanged(this, EventArgs.Empty); 44 } 39 45 } 40 46 41 47 [StorableConstructor] 42 protected SymbolicClassificationModel(bool deserializing) : base(deserializing) { } 48 protected SymbolicClassificationModel(bool deserializing) 49 : base(deserializing) { 50 targetVariable = string.Empty; 51 } 43 52 44 53 protected SymbolicClassificationModel(SymbolicClassificationModel original, Cloner cloner) … … 64 73 Scale(problemData, problemData.TargetVariable); 65 74 } 75 76 #region events 77 public event EventHandler TargetVariableChanged; 78 private void OnTargetVariableChanged(object sender, EventArgs args) { 79 var changed = TargetVariableChanged; 80 if (changed != null) 81 changed(sender, args); 82 } 83 #endregion 66 84 } 67 85 }
Note: See TracChangeset
for help on using the changeset viewer.