Changeset 6618 for branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification
- Timestamp:
- 08/01/11 17:48:53 (13 years ago)
- Location:
- branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/HeuristicLabProblemsDataAnalysisSymbolicClassificationPlugin.cs.frame
r6139 r6618 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { 28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification","Provides classes to perform symbolic classification (single- or multiobjective).", "3.4. 0.$WCREV$")]28 [Plugin("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification","Provides classes to perform symbolic classification (single- or multiobjective).", "3.4.1.$WCREV$")] 29 29 [PluginFile("HeuristicLab.Problems.DataAnalysis.Symbolic.Classification-3.4.dll", PluginFileType.Assembly)] 30 30 [PluginDependency("HeuristicLab.ALGLIB", "3.1")] -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/Properties/AssemblyInfo.frame
r6139 r6618 53 53 // by using the '*' as shown below: 54 54 [assembly: AssemblyVersion("3.4.0.0")] 55 [assembly: AssemblyFileVersion("3.4. 0.$WCREV$")]55 [assembly: AssemblyFileVersion("3.4.1.$WCREV$")] -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationModel.cs
r5809 r6618 21 21 22 22 using System.Collections.Generic; 23 using System.Linq;24 23 using HeuristicLab.Common; 25 24 using HeuristicLab.Core; 26 using HeuristicLab.Data;27 25 using HeuristicLab.Encodings.SymbolicExpressionTreeEncoding; 28 using HeuristicLab.Operators;29 using HeuristicLab.Parameters;30 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 31 using HeuristicLab.Optimization;32 using System;33 27 34 28 namespace HeuristicLab.Problems.DataAnalysis.Symbolic.Classification { … … 55 49 return Interpreter.GetSymbolicExpressionTreeValues(SymbolicExpressionTree, dataset, rows); 56 50 } 51 52 public ISymbolicClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) { 53 return new SymbolicClassificationSolution(this, problemData); 54 } 55 IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) { 56 return CreateClassificationSolution(problemData); 57 } 58 59 57 60 } 58 61 } -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicClassificationSolution.cs
r6415 r6618 63 63 Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue())); 64 64 Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue())); 65 CalculateResults();65 RecalculateResults(); 66 66 } 67 67 … … 71 71 72 72 protected override void RecalculateResults() { 73 base.RecalculateResults();74 CalculateResults();75 }76 77 private void CalculateResults() {78 73 ModelLength = Model.SymbolicExpressionTree.Length; 79 74 ModelDepth = Model.SymbolicExpressionTree.Depth; 75 CalculateResults(); 80 76 } 81 77 } -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationModel.cs
r6387 r6618 104 104 } 105 105 106 public SymbolicDiscriminantFunctionClassificationSolution CreateClassificationSolution(IClassificationProblemData problemData) { 107 return new SymbolicDiscriminantFunctionClassificationSolution(this, problemData); 108 } 109 IClassificationSolution IClassificationModel.CreateClassificationSolution(IClassificationProblemData problemData) { 110 return CreateClassificationSolution(problemData); 111 } 112 IDiscriminantFunctionClassificationSolution IDiscriminantFunctionClassificationModel.CreateDiscriminantFunctionClassificationSolution(IClassificationProblemData problemData) { 113 return CreateClassificationSolution(problemData); 114 } 115 106 116 #region events 107 117 public event EventHandler ThresholdsChanged; -
branches/GP.Grammar.Editor/HeuristicLab.Problems.DataAnalysis.Symbolic.Classification/3.4/SymbolicDiscriminantFunctionClassificationSolution.cs
r6415 r6618 66 66 Add(new Result(ModelLengthResultName, "Length of the symbolic classification model.", new IntValue())); 67 67 Add(new Result(ModelDepthResultName, "Depth of the symbolic classification model.", new IntValue())); 68 CalculateResults();68 RecalculateResults(); 69 69 } 70 70 … … 74 74 75 75 protected override void RecalculateResults() { 76 base.RecalculateResults();77 76 CalculateResults(); 78 } 79 80 private void CalculateResults() { 77 CalculateRegressionResults(); 81 78 ModelLength = Model.SymbolicExpressionTree.Length; 82 79 ModelDepth = Model.SymbolicExpressionTree.Depth; 83 80 } 81 84 82 } 85 83 }
Note: See TracChangeset
for help on using the changeset viewer.