Changeset 2161 for trunk/sources/HeuristicLab.LinearRegression
- Timestamp:
- 07/15/09 16:23:29 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.LinearRegression/3.2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.LinearRegression/3.2/HeuristicLab.LinearRegression-3.2.csproj
r2154 r2161 133 133 <Name>HeuristicLab.PluginInfrastructure</Name> 134 134 </ProjectReference> 135 <ProjectReference Include="..\..\HeuristicLab.Random\3.2\HeuristicLab.Random-3.2.csproj"> 136 <Project>{47019A74-F7F7-482E-83AA-D3F4F777E879}</Project> 137 <Name>HeuristicLab.Random-3.2</Name> 138 </ProjectReference> 135 139 <ProjectReference Include="..\..\HeuristicLab.SequentialEngine\3.2\HeuristicLab.SequentialEngine-3.2.csproj"> 136 140 <Project>{B4BE8E53-BA06-4237-9A01-24255F880201}</Project> -
trunk/sources/HeuristicLab.LinearRegression/3.2/HeuristicLabLinearRegressionPlugin.cs
r2155 r2161 34 34 [Dependency(Dependency = "HeuristicLab.GP.StructureIdentification-3.3")] 35 35 [Dependency(Dependency = "HeuristicLab.Modeling-3.2")] 36 [Dependency(Dependency = "HeuristicLab.Random-3.2")] 36 37 [Dependency(Dependency = "HeuristicLab.SequentialEngine-3.2")] 37 38 public class HeuristicLabLinearRegression : PluginBase { -
trunk/sources/HeuristicLab.LinearRegression/3.2/LinearRegression.cs
r2154 r2161 33 33 using HeuristicLab.Modeling; 34 34 using HeuristicLab.GP; 35 using HeuristicLab.Random; 35 36 36 37 namespace HeuristicLab.LinearRegression { … … 88 89 seq.Name = "LinearRegression"; 89 90 91 var randomInjector = new RandomInjector(); 92 randomInjector.Name = "Random Injector"; 90 93 IOperator globalInjector = CreateGlobalInjector(); 91 94 ProblemInjector problemInjector = new ProblemInjector(); 95 problemInjector.GetVariableInfo("MaxNumberOfTrainingSamples").Local = true; 96 problemInjector.AddVariable(new HeuristicLab.Core.Variable("MaxNumberOfTrainingSamples", new IntData(5000))); 97 98 IOperator shuffler = new DatasetShuffler(); 99 shuffler.GetVariableInfo("ShuffleStart").ActualName = "TrainingSamplesStart"; 100 shuffler.GetVariableInfo("ShuffleEnd").ActualName = "TrainingSamplesEnd"; 101 92 102 LinearRegressionOperator lrOperator = new LinearRegressionOperator(); 93 lrOperator.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";94 lrOperator.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";95 96 103 lrOperator.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 104 lrOperator.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 105 106 seq.AddSubOperator(randomInjector); 97 107 seq.AddSubOperator(globalInjector); 98 108 seq.AddSubOperator(problemInjector); 109 seq.AddSubOperator(shuffler); 99 110 seq.AddSubOperator(lrOperator); 100 111 seq.AddSubOperator(CreateModelAnalyser()); 101 102 112 103 113 algo.OperatorGraph.InitialOperator = seq; … … 126 136 trainingMSE.GetVariableInfo("FunctionTree").ActualName = "LinearRegressionModel"; 127 137 trainingMSE.GetVariableInfo("MSE").ActualName = "TrainingQuality"; 128 trainingMSE.GetVariableInfo("SamplesStart").ActualName = " ValidationSamplesStart";129 trainingMSE.GetVariableInfo("SamplesEnd").ActualName = " ValidationSamplesEnd";138 trainingMSE.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 139 trainingMSE.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 130 140 MeanSquaredErrorEvaluator validationMSE = new MeanSquaredErrorEvaluator(); 131 141 validationMSE.Name = "ValidationMseEvaluator"; … … 147 157 trainingR2.GetVariableInfo("FunctionTree").ActualName = "LinearRegressionModel"; 148 158 trainingR2.GetVariableInfo("R2").ActualName = "TrainingR2"; 149 trainingR2.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";150 trainingR2.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";159 trainingR2.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 160 trainingR2.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 151 161 CoefficientOfDeterminationEvaluator validationR2 = new CoefficientOfDeterminationEvaluator(); 152 162 validationR2.Name = "ValidationR2Evaluator"; … … 168 178 trainingMAPE.GetVariableInfo("FunctionTree").ActualName = "LinearRegressionModel"; 169 179 trainingMAPE.GetVariableInfo("MAPE").ActualName = "TrainingMAPE"; 170 trainingMAPE.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";171 trainingMAPE.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";180 trainingMAPE.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 181 trainingMAPE.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 172 182 MeanAbsolutePercentageErrorEvaluator validationMAPE = new MeanAbsolutePercentageErrorEvaluator(); 173 183 validationMAPE.Name = "ValidationMapeEvaluator"; … … 189 199 trainingMAPRE.GetVariableInfo("FunctionTree").ActualName = "LinearRegressionModel"; 190 200 trainingMAPRE.GetVariableInfo("MAPRE").ActualName = "TrainingMAPRE"; 191 trainingMAPRE.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";192 trainingMAPRE.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";201 trainingMAPRE.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 202 trainingMAPRE.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 193 203 MeanAbsolutePercentageOfRangeErrorEvaluator validationMAPRE = new MeanAbsolutePercentageOfRangeErrorEvaluator(); 194 204 validationMAPRE.Name = "ValidationMapreEvaluator"; … … 210 220 trainingVAF.GetVariableInfo("FunctionTree").ActualName = "LinearRegressionModel"; 211 221 trainingVAF.GetVariableInfo("VAF").ActualName = "TrainingVAF"; 212 trainingVAF.GetVariableInfo("SamplesStart").ActualName = " TrainingSamplesStart";213 trainingVAF.GetVariableInfo("SamplesEnd").ActualName = " TrainingSamplesEnd";222 trainingVAF.GetVariableInfo("SamplesStart").ActualName = "ActualTrainingSamplesStart"; 223 trainingVAF.GetVariableInfo("SamplesEnd").ActualName = "ActualTrainingSamplesEnd"; 214 224 VarianceAccountedForEvaluator validationVAF = new VarianceAccountedForEvaluator(); 215 225 validationVAF.Name = "ValidationVafEvaluator";
Note: See TracChangeset
for help on using the changeset viewer.