Changeset 16842 for branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour
- Timestamp:
- 04/19/19 11:05:52 (6 years ago)
- Location:
- branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
-
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:mergeinfo changed
-
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourClassification.cs
r16538 r16842 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 28 28 using HeuristicLab.Optimization; 29 29 using HeuristicLab.Parameters; 30 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;30 using HEAL.Attic; 31 31 using HeuristicLab.Problems.DataAnalysis; 32 32 … … 37 37 [Item("Nearest Neighbour Classification (kNN)", "Nearest neighbour classification data analysis algorithm (wrapper for ALGLIB).")] 38 38 [Creatable(CreatableAttribute.Categories.DataAnalysisClassification, Priority = 150)] 39 [Storable Class]39 [StorableType("98161D6F-D977-45EA-B899-E47EE017865E")] 40 40 public sealed class NearestNeighbourClassification : FixedDataAnalysisAlgorithm<IClassificationProblem> { 41 41 private const string KParameterName = "K"; … … 74 74 75 75 [StorableConstructor] 76 private NearestNeighbourClassification( bool deserializing) : base(deserializing) { }76 private NearestNeighbourClassification(StorableConstructorFlag _) : base(_) { } 77 77 private NearestNeighbourClassification(NearestNeighbourClassification original, Cloner cloner) 78 78 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourClassificationSolution.cs
r16538 r16842 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Attic; 25 25 using HeuristicLab.Problems.DataAnalysis; 26 26 … … 30 30 /// </summary> 31 31 [Item("NearestNeighbourClassificationSolution", "Represents a nearest neighbour solution for a classification problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("C336B1A1-A746-4DA9-A926-EC1CA4EFDB02")] 33 33 public sealed class NearestNeighbourClassificationSolution : ClassificationSolution, INearestNeighbourClassificationSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NearestNeighbourClassificationSolution( bool deserializing) : base(deserializing) { }41 private NearestNeighbourClassificationSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NearestNeighbourClassificationSolution(NearestNeighbourClassificationSolution original, Cloner cloner) 43 43 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourModel.cs
r16538 r16842 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 25 25 using HeuristicLab.Common; 26 26 using HeuristicLab.Core; 27 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;27 using HEAL.Attic; 28 28 using HeuristicLab.Problems.DataAnalysis; 29 29 … … 32 32 /// Represents a nearest neighbour model for regression and classification 33 33 /// </summary> 34 [Storable Class]34 [StorableType("A76C0823-3077-4ACE-8A40-E9B717C7DB60")] 35 35 [Item("NearestNeighbourModel", "Represents a nearest neighbour model for regression and classification.")] 36 36 public sealed class NearestNeighbourModel : ClassificationModel, INearestNeighbourModel { … … 68 68 69 69 [StorableConstructor] 70 private NearestNeighbourModel(bool deserializing) 71 : base(deserializing) { 72 if (deserializing) 73 kdTree = new alglib.nearestneighbor.kdtree(); 70 private NearestNeighbourModel(StorableConstructorFlag _) : base(_) { 71 kdTree = new alglib.nearestneighbor.kdtree(); 74 72 } 75 73 private NearestNeighbourModel(NearestNeighbourModel original, Cloner cloner) … … 296 294 return IsProblemDataCompatible(classificationProblemData, out errorMessage); 297 295 298 throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");296 throw new ArgumentException("The problem data is not compatible with this nearest neighbour model. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData"); 299 297 } 300 298 -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourRegression.cs
r16538 r16842 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 27 27 using HeuristicLab.Optimization; 28 28 using HeuristicLab.Parameters; 29 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;29 using HEAL.Attic; 30 30 using HeuristicLab.Problems.DataAnalysis; 31 31 … … 36 36 [Item("Nearest Neighbour Regression (kNN)", "Nearest neighbour regression data analysis algorithm (wrapper for ALGLIB).")] 37 37 [Creatable(CreatableAttribute.Categories.DataAnalysisRegression, Priority = 150)] 38 [Storable Class]38 [StorableType("3F940BE0-4F44-4F7F-A3EE-E47423C7F22D")] 39 39 public sealed class NearestNeighbourRegression : FixedDataAnalysisAlgorithm<IRegressionProblem> { 40 40 private const string KParameterName = "K"; … … 73 73 74 74 [StorableConstructor] 75 private NearestNeighbourRegression( bool deserializing) : base(deserializing) { }75 private NearestNeighbourRegression(StorableConstructorFlag _) : base(_) { } 76 76 private NearestNeighbourRegression(NearestNeighbourRegression original, Cloner cloner) 77 77 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NearestNeighbour/NearestNeighbourRegressionSolution.cs
r16538 r16842 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 8Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2019 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 22 22 using HeuristicLab.Common; 23 23 using HeuristicLab.Core; 24 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;24 using HEAL.Attic; 25 25 using HeuristicLab.Problems.DataAnalysis; 26 26 … … 30 30 /// </summary> 31 31 [Item("NearestNeighbourRegressionSolution", "Represents a nearest neighbour solution for a regression problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("71C86C1A-C917-4CA4-A239-C167C1C793F8")] 33 33 public sealed class NearestNeighbourRegressionSolution : RegressionSolution, INearestNeighbourRegressionSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NearestNeighbourRegressionSolution( bool deserializing) : base(deserializing) { }41 private NearestNeighbourRegressionSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NearestNeighbourRegressionSolution(NearestNeighbourRegressionSolution original, Cloner cloner) 43 43 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.