Changeset 14927 for branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
- Timestamp:
- 05/04/17 17:19:35 (8 years ago)
- Location:
- branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification
- Files:
-
- 16 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleModel.cs
r14185 r14927 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis { … … 30 30 /// Represents classification solutions that contain an ensemble of multiple classification models 31 31 /// </summary> 32 [Storable Class]32 [StorableType("6761ed28-bdc7-4294-beb7-077133ad5cbc")] 33 33 [Item("ClassificationEnsembleModel", "A classification model that contains an ensemble of multiple classification models")] 34 34 public class ClassificationEnsembleModel : ClassificationModel, IClassificationEnsembleModel { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleProblemData.cs
r14185 r14927 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Parameters; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis { 30 [Storable Class]30 [StorableType("61402dab-c365-44bd-96fc-2b24732f73ed")] 31 31 [Item("ClassificationEnsembleProblemData", "Represents an item containing all data defining a classification problem.")] 32 32 public class ClassificationEnsembleProblemData : ClassificationProblemData { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationEnsembleSolution.cs
r14185 r14927 27 27 using HeuristicLab.Core; 28 28 using HeuristicLab.Data; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis { … … 33 33 /// Represents classification solutions that contain an ensemble of multiple classification models 34 34 /// </summary> 35 [Storable Class]35 [StorableType("fdded23f-e5c0-49b0-a0a8-2a6860606245")] 36 36 [Item("Classification Ensemble Solution", "A classification solution that contains an ensemble of multiple classification models")] 37 37 [Creatable(CreatableAttribute.Categories.DataAnalysisEnsembles, Priority = 110)] -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationModel.cs
r14290 r14927 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis { 29 [Storable Class]29 [StorableType("4f482a86-2129-4d3e-a4c5-e666b6aeea14")] 30 30 [Item("Classification Model", "Base class for all classification models.")] 31 31 public abstract class ClassificationModel : DataAnalysisModel, IClassificationModel { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationPerformanceMeasures.cs
r14185 r14927 24 24 using HeuristicLab.Data; 25 25 using HeuristicLab.Optimization; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis { 29 [Storable Class]29 [StorableType("b7a45896-c96b-4ed1-ab51-4af1cf9feae5")] 30 30 public class ClassificationPerformanceMeasuresResultCollection : ResultCollection { 31 31 #region result names -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblem.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis { 27 [Storable Class]27 [StorableType("43dde58c-4d6c-4e2c-af47-5e170a460783")] 28 28 [Item("Classification Problem", "A general classification problem.")] 29 29 public class ClassificationProblem : DataAnalysisProblem<IClassificationProblemData>, IClassificationProblem, IStorableContent { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationProblemData.cs
r14185 r14927 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Parameters; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis { 32 [Storable Class]32 [StorableType("4d9ed3cf-b3f8-4daf-9cab-74fb3942dd8c")] 33 33 [Item("ClassificationProblemData", "Represents an item containing all data defining a classification problem.")] 34 34 public class ClassificationProblemData : DataAnalysisProblemData, IClassificationProblemData, IStorableContent { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolution.cs
r14185 r14927 23 23 using System.Linq; 24 24 using HeuristicLab.Common; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis { … … 29 29 /// Represents a classification data analysis solution 30 30 /// </summary> 31 [Storable Class]31 [StorableType("cc22a9ee-8a52-4d23-8f53-5e531706324b")] 32 32 public class ClassificationSolution : ClassificationSolutionBase { 33 33 protected readonly Dictionary<int, double> evaluationCache; -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ClassificationSolutionBase.cs
r14290 r14927 25 25 using HeuristicLab.Data; 26 26 using HeuristicLab.Optimization; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 using HeuristicLab.Problems.DataAnalysis.OnlineCalculators; 29 29 30 30 namespace HeuristicLab.Problems.DataAnalysis { 31 [Storable Class]31 [StorableType("5c67f421-2918-40a5-83a4-bebcaf5e49b5")] 32 32 public abstract class ClassificationSolutionBase : DataAnalysisSolution, IClassificationSolution { 33 33 private const string TrainingAccuracyResultName = "Accuracy (training)"; -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ConstantClassificationSolution.cs
r14185 r14927 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;24 using HeuristicLab.Persistence; 25 25 26 26 namespace HeuristicLab.Problems.DataAnalysis { 27 [Storable Class]27 [StorableType("9090b8ae-63f8-4932-bda0-1a70872f3f92")] 28 28 [Item(Name = "Constant Classification Solution", Description = "Represents a constant classification solution (model + data).")] 29 29 public class ConstantClassificationSolution : ClassificationSolution { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationModel.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis { … … 31 31 /// Represents discriminant function classification data analysis models. 32 32 /// </summary> 33 [Storable Class]33 [StorableType("08ff9689-5c56-4458-a55b-70e94e3d6b40")] 34 34 [Item("DiscriminantFunctionClassificationModel", "Represents a classification model that uses a discriminant function and classification thresholds.")] 35 35 public class DiscriminantFunctionClassificationModel : ClassificationModel, IDiscriminantFunctionClassificationModel { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolution.cs
r14185 r14927 24 24 using HeuristicLab.Common; 25 25 using HeuristicLab.Core; 26 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;26 using HeuristicLab.Persistence; 27 27 28 28 namespace HeuristicLab.Problems.DataAnalysis { … … 30 30 /// Represents a classification solution that uses a discriminant function and classification thresholds. 31 31 /// </summary> 32 [Storable Class]32 [StorableType("1970b1e6-0649-43dd-a8f4-48afc8bc7a46")] 33 33 [Item("DiscriminantFunctionClassificationSolution", "Represents a classification solution that uses a discriminant function and classification thresholds.")] 34 34 public class DiscriminantFunctionClassificationSolution : DiscriminantFunctionClassificationSolutionBase { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/DiscriminantFunctionClassificationSolutionBase.cs
r14185 r14927 27 27 using HeuristicLab.Data; 28 28 using HeuristicLab.Optimization; 29 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;29 using HeuristicLab.Persistence; 30 30 31 31 namespace HeuristicLab.Problems.DataAnalysis { … … 33 33 /// Represents a classification solution that uses a discriminant function and classification thresholds. 34 34 /// </summary> 35 [Storable Class]35 [StorableType("0cf40763-3f72-49c4-a674-a070aec9d032")] 36 36 [Item("DiscriminantFunctionClassificationSolution", "Represents a classification solution that uses a discriminant function and classification thresholds.")] 37 37 public abstract class DiscriminantFunctionClassificationSolutionBase : ClassificationSolutionBase, IDiscriminantFunctionClassificationSolution { … … 106 106 107 107 double trainingR = OnlinePearsonsRCalculator.Calculate(originalTrainingValues, estimatedTrainingValues, out errorState); 108 TrainingRSquared = errorState == OnlineCalculatorError.None ? trainingR *trainingR : double.NaN;108 TrainingRSquared = errorState == OnlineCalculatorError.None ? trainingR * trainingR : double.NaN; 109 109 double testR = OnlinePearsonsRCalculator.Calculate(originalTestValues, estimatedTestValues, out errorState); 110 TestRSquared = errorState == OnlineCalculatorError.None ? testR *testR : double.NaN;110 TestRSquared = errorState == OnlineCalculatorError.None ? testR * testR : double.NaN; 111 111 112 112 double trainingNormalizedGini = NormalizedGiniCalculator.Calculate(originalTrainingValues, estimatedTrainingValues, out errorState); -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/AccuracyMaximizationThresholdCalculator.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis { … … 31 31 /// Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model. 32 32 /// </summary> 33 [Storable Class]33 [StorableType("bb9b9036-7843-4fdd-8544-6191eed7bd21")] 34 34 [Item("AccuracyMaximizationThresholdCalculator", "Represents a threshold calculator that maximizes the weighted accuracy of the classifcation model.")] 35 35 public class AccuracyMaximizationThresholdCalculator : ThresholdCalculator { … … 93 93 classificationScore += problemData.GetClassificationPenalty(pair.TargetClassValue, classValues[i]); 94 94 } 95 95 //all negatives 96 96 else { 97 97 //false positive … … 116 116 seriesOfEqualClassificationScores = true; 117 117 } 118 118 //equal classification scores => if seriesOfEqualClassifcationScores == true update highest threshold 119 119 else if (Math.Abs(classificationScore - bestClassificationScore) < double.Epsilon && seriesOfEqualClassificationScores) 120 120 highestBestThreshold = actualThreshold; -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/NormalDistributionCutPointsThresholdCalculator.cs
r14185 r14927 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;27 using HeuristicLab.Persistence; 28 28 29 29 namespace HeuristicLab.Problems.DataAnalysis { … … 31 31 /// Represents a threshold calculator that calculates thresholds as the cutting points between the estimated class distributions (assuming normally distributed class values). 32 32 /// </summary> 33 [Storable Class]33 [StorableType("8d46742b-731e-4319-a063-bf20d458e709")] 34 34 [Item("NormalDistributionCutPointsThresholdCalculator", "Represents a threshold calculator that calculates thresholds as the cutting points between the estimated class distributions (assuming normally distributed class values).")] 35 35 public class NormalDistributionCutPointsThresholdCalculator : ThresholdCalculator { -
branches/PersistenceReintegration/HeuristicLab.Problems.DataAnalysis/3.4/Implementation/Classification/ThresholdCalculators/ThresholdCalculator.cs
r14185 r14927 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using HeuristicLab.Persistence .Default.CompositeSerializers.Storable;25 using HeuristicLab.Persistence; 26 26 27 27 namespace HeuristicLab.Problems.DataAnalysis { … … 29 29 /// Base class for threshold calculators for discriminant function classification models. 30 30 /// </summary> 31 [Storable Class]31 [StorableType("097aa7bf-3adf-436b-a369-71a3e721a8bf")] 32 32 public abstract class ThresholdCalculator : NamedItem, IDiscriminantFunctionThresholdCalculator { 33 33
Note: See TracChangeset
for help on using the changeset viewer.