- Timestamp:
- 03/08/09 12:48:18 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification.Classification
- Files:
-
- 2 deleted
- 1 edited
- 3 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/HeuristicLab.GP.StructureIdentification.Classification.csproj
r852 r1287 67 67 <Compile Include="ClassificationMeanSquaredErrorEvaluator.cs" /> 68 68 <Compile Include="ConfusionMatrixEvaluator.cs" /> 69 <Compile Include="DatasetShuffler.cs" />70 69 <Compile Include="GPClassificationEvaluatorBase.cs" /> 71 70 <Compile Include="CrossValidation.cs" /> 72 <Compile Include="FunctionLibraryInjector.cs">73 <SubType>Code</SubType>74 </Compile>75 71 <Compile Include="HeuristicLabGPClassificationPlugin.cs" /> 76 72 <Compile Include="MulticlassModeller.cs" /> 77 73 <Compile Include="MulticlassOneVsOneAnalyzer.cs" /> 74 <Compile Include="OffspringSelectionGP.cs" /> 75 <Compile Include="ProblemInjector.cs" /> 78 76 <Compile Include="Properties\AssemblyInfo.cs" /> 79 77 <Compile Include="ROCAnalyzer.cs" /> 78 <Compile Include="StandardGP.cs" /> 80 79 </ItemGroup> 81 80 <ItemGroup> … … 103 102 <Project>{1F1CF3ED-374C-4288-995B-93F6B872F571}</Project> 104 103 <Name>HeuristicLab.GP</Name> 104 </ProjectReference> 105 <ProjectReference Include="..\HeuristicLab.Operators\HeuristicLab.Operators.csproj"> 106 <Project>{A9983BA2-B3B2-475E-8E2C-62050B71D1C5}</Project> 107 <Name>HeuristicLab.Operators</Name> 105 108 </ProjectReference> 106 109 <ProjectReference Include="..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> -
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/OffspringSelectionGP.cs
r1245 r1287 33 33 namespace HeuristicLab.GP.StructureIdentification.Classification { 34 34 public class OffspringSelectionGP : HeuristicLab.GP.StructureIdentification.OffspringSelectionGP { 35 protected override IOperator CreateProblemInjector() { 36 return new ProblemInjector(); 37 } 38 35 39 protected override IOperator CreateBestSolutionProcessor() { 36 40 IOperator seq = base.CreateBestSolutionProcessor(); 37 AccuracyEvaluator trainingAccuracy = new AccuracyEvaluator(); 38 trainingAccuracy.GetVariableInfo("Accuracy").ActualName = "TrainingAccuracy"; 39 trainingAccuracy.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart"; 40 trainingAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd"; 41 42 AccuracyEvaluator validationAccuracy = new AccuracyEvaluator(); 43 validationAccuracy.GetVariableInfo("Accuracy").ActualName = "ValidationAccuracy"; 44 validationAccuracy.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 45 validationAccuracy.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 46 47 AccuracyEvaluator testAccuracy = new AccuracyEvaluator(); 48 testAccuracy.GetVariableInfo("Accuracy").ActualName = "TestAccuracy"; 49 testAccuracy.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart"; 50 testAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd"; 51 52 ConfusionMatrixEvaluator trainingConfusionMatrix = new ConfusionMatrixEvaluator(); 53 trainingConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TrainingConfusionMatrix"; 54 trainingConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart"; 55 trainingConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd"; 56 57 ConfusionMatrixEvaluator validationConfusionMatrix = new ConfusionMatrixEvaluator(); 58 validationConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "ValidationConfusionMatrix"; 59 validationConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 60 validationConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 61 62 ConfusionMatrixEvaluator testConfusionMatrix = new ConfusionMatrixEvaluator(); 63 testConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TestConfusionMatrix"; 64 testConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart"; 65 testConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd"; 66 67 seq.AddSubOperator(trainingAccuracy); 68 seq.AddSubOperator(validationAccuracy); 69 seq.AddSubOperator(testAccuracy); 41 seq.AddSubOperator(StandardGP.BestSolutionProcessor); 70 42 return seq; 71 43 } -
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/StandardGP.cs
r1245 r1287 30 30 using HeuristicLab.Random; 31 31 using HeuristicLab.Data; 32 using HeuristicLab.Operators; 32 33 33 34 namespace HeuristicLab.GP.StructureIdentification.Classification { 34 public class StandardGP : HeuristicLab.GP.StructureIdentification.StandardGP { 35 public class StandardGP : HeuristicLab.GP.StructureIdentification.StandardGP { 36 37 protected override IOperator CreateProblemInjector() { 38 return new ProblemInjector(); 39 } 40 35 41 protected override IOperator CreateBestSolutionProcessor() { 36 42 IOperator seq = base.CreateBestSolutionProcessor(); 37 AccuracyEvaluator trainingAccuracy = new AccuracyEvaluator(); 38 trainingAccuracy.GetVariableInfo("Accuracy").ActualName = "TrainingAccuracy"; 39 trainingAccuracy.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart"; 40 trainingAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd"; 43 seq.AddSubOperator(BestSolutionProcessor); 44 return seq; 45 } 41 46 42 AccuracyEvaluator validationAccuracy = new AccuracyEvaluator(); 43 validationAccuracy.GetVariableInfo("Accuracy").ActualName = "ValidationAccuracy"; 44 validationAccuracy.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 45 validationAccuracy.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 47 internal static IOperator BestSolutionProcessor { 48 get { 49 SequentialProcessor seq = new SequentialProcessor(); 50 AccuracyEvaluator trainingAccuracy = new AccuracyEvaluator(); 51 trainingAccuracy.GetVariableInfo("Accuracy").ActualName = "TrainingAccuracy"; 52 trainingAccuracy.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart"; 53 trainingAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd"; 46 54 47 AccuracyEvaluator testAccuracy = new AccuracyEvaluator();48 testAccuracy.GetVariableInfo("Accuracy").ActualName = "TestAccuracy";49 testAccuracy.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart";50 testAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd";55 AccuracyEvaluator validationAccuracy = new AccuracyEvaluator(); 56 validationAccuracy.GetVariableInfo("Accuracy").ActualName = "ValidationAccuracy"; 57 validationAccuracy.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 58 validationAccuracy.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 51 59 52 ConfusionMatrixEvaluator trainingConfusionMatrix = new ConfusionMatrixEvaluator();53 trainingConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TrainingConfusionMatrix";54 trainingConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart";55 trainingConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd";60 AccuracyEvaluator testAccuracy = new AccuracyEvaluator(); 61 testAccuracy.GetVariableInfo("Accuracy").ActualName = "TestAccuracy"; 62 testAccuracy.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart"; 63 testAccuracy.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd"; 56 64 57 ConfusionMatrixEvaluator validationConfusionMatrix = new ConfusionMatrixEvaluator();58 validationConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "ValidationConfusionMatrix";59 validationConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart";60 validationConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd";65 ConfusionMatrixEvaluator trainingConfusionMatrix = new ConfusionMatrixEvaluator(); 66 trainingConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TrainingConfusionMatrix"; 67 trainingConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TrainingSamplesStart"; 68 trainingConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TrainingSamplesEnd"; 61 69 62 ConfusionMatrixEvaluator testConfusionMatrix = new ConfusionMatrixEvaluator();63 testConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TestConfusionMatrix";64 testConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart";65 testConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd";70 ConfusionMatrixEvaluator validationConfusionMatrix = new ConfusionMatrixEvaluator(); 71 validationConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "ValidationConfusionMatrix"; 72 validationConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "ValidationSamplesStart"; 73 validationConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "ValidationSamplesEnd"; 66 74 67 seq.AddSubOperator(trainingAccuracy); 68 seq.AddSubOperator(validationAccuracy); 69 seq.AddSubOperator(testAccuracy); 70 return seq; 75 ConfusionMatrixEvaluator testConfusionMatrix = new ConfusionMatrixEvaluator(); 76 testConfusionMatrix.GetVariableInfo("ConfusionMatrix").ActualName = "TestConfusionMatrix"; 77 testConfusionMatrix.GetVariableInfo("SamplesStart").ActualName = "TestSamplesStart"; 78 testConfusionMatrix.GetVariableInfo("SamplesEnd").ActualName = "TestSamplesEnd"; 79 80 seq.AddSubOperator(trainingAccuracy); 81 seq.AddSubOperator(validationAccuracy); 82 seq.AddSubOperator(testAccuracy); 83 seq.AddSubOperator(trainingConfusionMatrix); 84 seq.AddSubOperator(validationConfusionMatrix); 85 seq.AddSubOperator(testConfusionMatrix); 86 return seq; 87 } 71 88 } 72 89 }
Note: See TracChangeset
for help on using the changeset viewer.