- Timestamp:
- 10/14/08 23:34:38 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.GP.StructureIdentification.Classification
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/ConfusionMatrixEvaluator.cs
r656 r658 29 29 30 30 namespace HeuristicLab.GP.Classification { 31 public class C lassificationMatrixEvaluator : GPEvaluatorBase {31 public class ConfusionMatrixEvaluator : GPEvaluatorBase { 32 32 private const double EPSILON = 1.0E-6; 33 33 private double[] classesArr; … … 40 40 } 41 41 42 public C lassificationMatrixEvaluator()42 public ConfusionMatrixEvaluator() 43 43 : base() { 44 AddVariableInfo(new VariableInfo("C lassificationMatrix", "The resulting classification matrix of the model", typeof(IntMatrixData), VariableKind.New));44 AddVariableInfo(new VariableInfo("ConfusionMatrix", "The confusion matrix of the model", typeof(IntMatrixData), VariableKind.New)); 45 45 AddVariableInfo(new VariableInfo("TargetClassValues", "The original class values of target variable (for instance negative=0 and positive=1).", typeof(ItemList<DoubleData>), VariableKind.In)); 46 46 } … … 56 56 } 57 57 58 matrix = GetVariableValue<IntMatrixData>("C lassificationMatrix", scope, false, false);58 matrix = GetVariableValue<IntMatrixData>("ConfusionMatrix", scope, false, false); 59 59 if(matrix == null) { 60 60 matrix = new IntMatrixData(new int[classesArr.Length, classesArr.Length]); 61 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("C lassificationMatrix"), matrix));61 scope.AddVariable(new HeuristicLab.Core.Variable(scope.TranslateName("ConfusionMatrix"), matrix)); 62 62 } 63 63 return base.Apply(scope); -
trunk/sources/HeuristicLab.GP.StructureIdentification.Classification/HeuristicLab.GP.StructureIdentification.Classification.csproj
r656 r658 65 65 <ItemGroup> 66 66 <Compile Include="AccuracyEvaluator.cs" /> 67 <Compile Include="ClassificationMatrixEvaluator.cs" />68 67 <Compile Include="ClassificationMeanSquaredErrorEvaluator.cs" /> 68 <Compile Include="ConfusionMatrixEvaluator.cs" /> 69 69 <Compile Include="CrossValidation.cs" /> 70 70 <Compile Include="FunctionLibraryInjector.cs">
Note: See TracChangeset
for help on using the changeset viewer.