- Timestamp:
- 01/11/11 15:03:46 (13 years ago)
- Location:
- branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3/Evaluators/LinearRegressionFeatureSelectionEvaluator.cs
r4109 r5275 33 33 using HeuristicLab.Problems.DataAnalysis.Regression.Symbolic; 34 34 using HeuristicLab.Problems.DataAnalysis.Evaluators; 35 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 35 36 namespace HeuristicLab.Problems.DataAnalysis.FeatureSelection { 36 37 public class LinearRegressionFeatureSelectionEvaluator : SingleSuccessorOperator, IFeatureSelectionEvaluator { … … 56 57 } 57 58 #endregion 58 59 [StorableConstructor] 60 protected LinearRegressionFeatureSelectionEvaluator(bool deserializing) : base(deserializing) { } 61 protected LinearRegressionFeatureSelectionEvaluator(LinearRegressionFeatureSelectionEvaluator original, Cloner cloner) 62 : base(original, cloner) { 63 } 59 64 public LinearRegressionFeatureSelectionEvaluator() 60 65 : base() { … … 63 68 Parameters.Add(new LookupParameter<DoubleArray>("Qualities", "The qualities of the linear regression solution (MSE, size).")); 64 69 } 65 70 public override IDeepCloneable Clone(Cloner cloner) { 71 return new LinearRegressionFeatureSelectionEvaluator(this, cloner); 72 } 66 73 public override IOperation Apply() { 67 74 var dataset = DataAnalysisProblemData.Dataset; -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3/FeatureSelectionProblem.cs
r4118 r5275 91 91 [StorableConstructor] 92 92 protected FeatureSelectionProblem(bool deserializing) : base(deserializing) { } 93 protected FeatureSelectionProblem(FeatureSelectionProblem original, Cloner cloner) 94 : base(original, cloner) { 95 operators = original.operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 96 RegisterParameterEvents(); 97 RegisterParameterValueEvents(); 98 } 93 99 public FeatureSelectionProblem() 94 100 : base() { … … 111 117 112 118 [StorableHook(HookType.AfterDeserialization)] 113 private void AfterDeserialization Hook() {119 private void AfterDeserialization() { 114 120 // BackwardsCompatibility3.3 115 121 #region Backwards compatible code (remove with 3.4) … … 121 127 122 128 public override IDeepCloneable Clone(Cloner cloner) { 123 FeatureSelectionProblem clone = (FeatureSelectionProblem)base.Clone(cloner); 124 clone.operators = operators.Select(x => (IOperator)cloner.Clone(x)).ToList(); 125 clone.RegisterParameterEvents(); 126 clone.RegisterParameterValueEvents(); 127 return clone; 129 return new FeatureSelectionProblem(this, cloner); 128 130 } 129 131 -
branches/DataAnalysis/HeuristicLab.Problems.DataAnalysis.FeatureSelection/3.3/HeuristicLab.Problems.DataAnalysis.FeatureSelection-3.3.csproj
r5265 r5275 92 92 </PropertyGroup> 93 93 <ItemGroup> 94 <Reference Include="HeuristicLab.ALGLIB-3.1.0"> 95 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.ALGLIB-3.1.0.dll</HintPath> 96 </Reference> 97 <Reference Include="HeuristicLab.Analysis-3.3"> 98 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Analysis-3.3.dll</HintPath> 99 </Reference> 100 <Reference Include="HeuristicLab.Collections-3.3"> 101 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Collections-3.3.dll</HintPath> 102 </Reference> 103 <Reference Include="HeuristicLab.Common-3.3"> 104 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common-3.3.dll</HintPath> 105 </Reference> 106 <Reference Include="HeuristicLab.Common.Resources-3.3"> 107 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Common.Resources-3.3.dll</HintPath> 108 </Reference> 109 <Reference Include="HeuristicLab.Core-3.3"> 110 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Core-3.3.dll</HintPath> 111 </Reference> 112 <Reference Include="HeuristicLab.Data-3.3"> 113 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Data-3.3.dll</HintPath> 114 </Reference> 115 <Reference Include="HeuristicLab.Encodings.BinaryVectorEncoding-3.3"> 116 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Encodings.BinaryVectorEncoding-3.3.dll</HintPath> 117 </Reference> 118 <Reference Include="HeuristicLab.Encodings.RealVectorEncoding-3.3"> 119 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Encodings.RealVectorEncoding-3.3.dll</HintPath> 120 </Reference> 121 <Reference Include="HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3"> 122 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Encodings.SymbolicExpressionTreeEncoding-3.3.dll</HintPath> 123 </Reference> 124 <Reference Include="HeuristicLab.Operators-3.3"> 125 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Operators-3.3.dll</HintPath> 126 </Reference> 127 <Reference Include="HeuristicLab.Optimization-3.3"> 128 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Optimization-3.3.dll</HintPath> 129 </Reference> 130 <Reference Include="HeuristicLab.Parameters-3.3"> 131 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Parameters-3.3.dll</HintPath> 132 </Reference> 133 <Reference Include="HeuristicLab.Persistence-3.3"> 134 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.Persistence-3.3.dll</HintPath> 135 </Reference> 136 <Reference Include="HeuristicLab.PluginInfrastructure-3.3"> 137 <HintPath>..\..\..\..\..\..\Program Files\HeuristicLab 3.3\HeuristicLab.PluginInfrastructure-3.3.dll</HintPath> 138 </Reference> 94 139 <Reference Include="System" /> 95 140 <Reference Include="System.Core">
Note: See TracChangeset
for help on using the changeset viewer.