Changeset 16842 for branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork
- Timestamp:
- 04/19/19 11:05:52 (6 years ago)
- Location:
- branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis
- Files:
-
- 12 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/NeuralNetwork/NeuralNetworkClassification.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. … … 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 using HeuristicLab.Problems.DataAnalysis; 33 33 … … 38 38 [Item("Neural Network Classification (NN)", "Neural network classification data analysis algorithm (wrapper for ALGLIB). Further documentation: http://www.alglib.net/dataanalysis/neuralnetworks.php")] 39 39 [Creatable(CreatableAttribute.Categories.DataAnalysisClassification, Priority = 130)] 40 [Storable Class]40 [StorableType("8D44A55B-B162-42D6-A761-A420F4D107C4")] 41 41 public sealed class NeuralNetworkClassification : FixedDataAnalysisAlgorithm<IClassificationProblem> { 42 42 private const string DecayParameterName = "Decay"; … … 108 108 109 109 [StorableConstructor] 110 private NeuralNetworkClassification( bool deserializing) : base(deserializing) { }110 private NeuralNetworkClassification(StorableConstructorFlag _) : base(_) { } 111 111 private NeuralNetworkClassification(NeuralNetworkClassification original, Cloner cloner) 112 112 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkClassificationSolution.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("NeuralNetworkClassificationSolution", "Represents a neural network solution for a classification problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("7B08B27F-66B6-47C8-946E-51B28F603B43")] 33 33 public sealed class NeuralNetworkClassificationSolution : ClassificationSolution, INeuralNetworkClassificationSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NeuralNetworkClassificationSolution( bool deserializing) : base(deserializing) { }41 private NeuralNetworkClassificationSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NeuralNetworkClassificationSolution(NeuralNetworkClassificationSolution original, Cloner cloner) 43 43 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.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. … … 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 using HeuristicLab.Problems.DataAnalysis; 33 33 … … 38 38 [Item("Neural Network Ensemble Classification (NN)", "Neural network ensemble classification data analysis algorithm (wrapper for ALGLIB). Further documentation: http://www.alglib.net/dataanalysis/mlpensembles.php")] 39 39 [Creatable(CreatableAttribute.Categories.DataAnalysisClassification, Priority = 140)] 40 [Storable Class]40 [StorableType("21B48D73-B907-4710-854A-C549F8C66CFF")] 41 41 public sealed class NeuralNetworkEnsembleClassification : FixedDataAnalysisAlgorithm<IClassificationProblem> { 42 42 private const string EnsembleSizeParameterName = "EnsembleSize"; … … 119 119 120 120 [StorableConstructor] 121 private NeuralNetworkEnsembleClassification( bool deserializing) : base(deserializing) { }121 private NeuralNetworkEnsembleClassification(StorableConstructorFlag _) : base(_) { } 122 122 private NeuralNetworkEnsembleClassification(NeuralNetworkEnsembleClassification original, Cloner cloner) 123 123 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassificationSolution.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("NeuralNetworkEnsembleClassificationSolution", "Represents a neural network ensemble solution for a classification problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("7D834C91-2790-44B6-97A4-BC7409D869FD")] 33 33 public sealed class NeuralNetworkEnsembleClassificationSolution : ClassificationSolution, INeuralNetworkEnsembleClassificationSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NeuralNetworkEnsembleClassificationSolution( bool deserializing) : base(deserializing) { }41 private NeuralNetworkEnsembleClassificationSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NeuralNetworkEnsembleClassificationSolution(NeuralNetworkEnsembleClassificationSolution original, Cloner cloner) 43 43 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleModel.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 neural network ensembel model for regression and classification 33 33 /// </summary> 34 [Storable Class]34 [StorableType("51B29670-27BD-405C-A521-39814E4BD857")] 35 35 [Item("NeuralNetworkEnsembleModel", "Represents a neural network ensemble for regression and classification.")] 36 36 public sealed class NeuralNetworkEnsembleModel : ClassificationModel, INeuralNetworkEnsembleModel { … … 50 50 private double[] classValues; 51 51 [StorableConstructor] 52 private NeuralNetworkEnsembleModel(bool deserializing) 53 : base(deserializing) { 54 if (deserializing) 55 mlpEnsemble = new alglib.mlpensemble(); 52 private NeuralNetworkEnsembleModel(StorableConstructorFlag _) : base(_) { 53 mlpEnsemble = new alglib.mlpensemble(); 56 54 } 57 55 private NeuralNetworkEnsembleModel(NeuralNetworkEnsembleModel original, Cloner cloner) … … 146 144 return IsProblemDataCompatible(classificationProblemData, out errorMessage); 147 145 148 throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");146 throw new ArgumentException("The problem data is not compatible with this neural network ensemble. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData"); 149 147 } 150 148 … … 155 153 return new NeuralNetworkEnsembleClassificationSolution(this, new ClassificationEnsembleProblemData(problemData)); 156 154 } 157 155 158 156 #region persistence 159 157 [Storable] … … 185 183 } 186 184 } 187 [Storable( AllowOneWay = true)]185 [Storable(OldName = "MultiLayerPerceptronEnsembleDfdnet")] 188 186 private double[] MultiLayerPerceptronEnsembleDfdnet { 189 187 set { … … 199 197 } 200 198 } 201 [Storable( AllowOneWay = true)]199 [Storable(OldName = "MultiLayerPerceptronEnsembleNeurons")] 202 200 private double[] MultiLayerPerceptronEnsembleNeurons { 203 201 set { mlpEnsemble.innerobj.network.neurons = value; } 204 202 } 205 [Storable( AllowOneWay = true)]203 [Storable(OldName = "MultiLayerPerceptronEnsembleSerializedMlp")] 206 204 private double[] MultiLayerPerceptronEnsembleSerializedMlp { 207 205 set { … … 209 207 } 210 208 } 211 [Storable( AllowOneWay = true)]209 [Storable(OldName = "MultiLayerPerceptronStuctinfo")] 212 210 private int[] MultiLayerPerceptronStuctinfo { 213 211 set { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleRegression.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. … … 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 using HeuristicLab.Problems.DataAnalysis; 33 33 … … 38 38 [Item("Neural Network Ensemble Regression (NN)", "Neural network ensemble regression data analysis algorithm (wrapper for ALGLIB). Further documentation: http://www.alglib.net/dataanalysis/mlpensembles.php")] 39 39 [Creatable(CreatableAttribute.Categories.DataAnalysisRegression, Priority = 140)] 40 [Storable Class]40 [StorableType("FD50BD78-3586-4C31-87AE-5490E717F4E7")] 41 41 public sealed class NeuralNetworkEnsembleRegression : FixedDataAnalysisAlgorithm<IRegressionProblem> { 42 42 private const string EnsembleSizeParameterName = "EnsembleSize"; … … 119 119 120 120 [StorableConstructor] 121 private NeuralNetworkEnsembleRegression( bool deserializing) : base(deserializing) { }121 private NeuralNetworkEnsembleRegression(StorableConstructorFlag _) : base(_) { } 122 122 private NeuralNetworkEnsembleRegression(NeuralNetworkEnsembleRegression original, Cloner cloner) 123 123 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleRegressionSolution.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("NeuralNetworkEnsembleRegressionSolution", "Represents a neural network ensemble solution for a regression problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("46257A3C-9052-4390-98D1-14A6FBF51C8A")] 33 33 public sealed class NeuralNetworkEnsembleRegressionSolution : RegressionSolution, INeuralNetworkEnsembleRegressionSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NeuralNetworkEnsembleRegressionSolution( bool deserializing) : base(deserializing) { }41 private NeuralNetworkEnsembleRegressionSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NeuralNetworkEnsembleRegressionSolution(NeuralNetworkEnsembleRegressionSolution original, Cloner cloner) 43 43 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkModel.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 neural network model for regression and classification 33 33 /// </summary> 34 [Storable Class]34 [StorableType("AEB9B960-FCA6-4A6D-BD5F-27BCE9CC5BEA")] 35 35 [Item("NeuralNetworkModel", "Represents a neural network for regression and classification.")] 36 36 public sealed class NeuralNetworkModel : ClassificationModel, INeuralNetworkModel { … … 48 48 private double[] classValues; 49 49 [StorableConstructor] 50 private NeuralNetworkModel(bool deserializing) 51 : base(deserializing) { 52 if (deserializing) 53 multiLayerPerceptron = new alglib.multilayerperceptron(); 50 private NeuralNetworkModel(StorableConstructorFlag _) : base(_) { 51 multiLayerPerceptron = new alglib.multilayerperceptron(); 54 52 } 55 53 private NeuralNetworkModel(NeuralNetworkModel original, Cloner cloner) … … 149 147 return IsProblemDataCompatible(classificationProblemData, out errorMessage); 150 148 151 throw new ArgumentException("The problem data is not a regression nor a classification problem data. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData");149 throw new ArgumentException("The problem data is not compatible with this neural network. Instead a " + problemData.GetType().GetPrettyName() + " was provided.", "problemData"); 152 150 } 153 151 -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkRegression.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. … … 29 29 using HeuristicLab.Optimization; 30 30 using HeuristicLab.Parameters; 31 using H euristicLab.Persistence.Default.CompositeSerializers.Storable;31 using HEAL.Attic; 32 32 using HeuristicLab.Problems.DataAnalysis; 33 33 … … 38 38 [Item("Neural Network Regression (NN)", "Neural network regression data analysis algorithm (wrapper for ALGLIB). Further documentation: http://www.alglib.net/dataanalysis/neuralnetworks.php")] 39 39 [Creatable(CreatableAttribute.Categories.DataAnalysisRegression, Priority = 130)] 40 [Storable Class]40 [StorableType("F9EEA27B-43FF-4296-A4B9-CC024CD1778C")] 41 41 public sealed class NeuralNetworkRegression : FixedDataAnalysisAlgorithm<IRegressionProblem> { 42 42 private const string DecayParameterName = "Decay"; … … 108 108 109 109 [StorableConstructor] 110 private NeuralNetworkRegression( bool deserializing) : base(deserializing) { }110 private NeuralNetworkRegression(StorableConstructorFlag _) : base(_) { } 111 111 private NeuralNetworkRegression(NeuralNetworkRegression original, Cloner cloner) 112 112 : base(original, cloner) { -
branches/2847_M5Regression/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkRegressionSolution.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("NeuralNetworkRegressionSolution", "Represents a neural network solution for a regression problem which can be visualized in the GUI.")] 32 [Storable Class]32 [StorableType("E1E1B29A-B87A-4BCA-9A2C-83DA8AD7B9D9")] 33 33 public sealed class NeuralNetworkRegressionSolution : RegressionSolution, INeuralNetworkRegressionSolution { 34 34 … … 39 39 40 40 [StorableConstructor] 41 private NeuralNetworkRegressionSolution( bool deserializing) : base(deserializing) { }41 private NeuralNetworkRegressionSolution(StorableConstructorFlag _) : base(_) { } 42 42 private NeuralNetworkRegressionSolution(NeuralNetworkRegressionSolution original, Cloner cloner) 43 43 : base(original, cloner) {
Note: See TracChangeset
for help on using the changeset viewer.