Changeset 8430 for branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.cs
- Timestamp:
- 08/08/12 14:04:17 (12 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
- Property svn:ignore
-
old new 20 20 bin 21 21 protoc.exe 22 _ReSharper.HeuristicLab.TimeSeries-3.3
-
- Property svn:ignore
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis
- Property svn:mergeinfo changed
/trunk/sources/HeuristicLab.Algorithms.DataAnalysis (added) merged: 8121,8137,8139,8246,8323-8325,8366-8368,8371-8372,8375,8396-8397,8399,8401,8403,8416-8417
- Property svn:mergeinfo changed
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:ignore
-
old new 5 5 *.vs10x 6 6 Plugin.cs 7 *.user
-
- Property svn:ignore
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.cs
r7259 r8430 57 57 get { return (IFixedValueParameter<DoubleValue>)Parameters[DecayParameterName]; } 58 58 } 59 public ConstrainedValueParameter<IntValue> HiddenLayersParameter {60 get { return ( ConstrainedValueParameter<IntValue>)Parameters[HiddenLayersParameterName]; }59 public IConstrainedValueParameter<IntValue> HiddenLayersParameter { 60 get { return (IConstrainedValueParameter<IntValue>)Parameters[HiddenLayersParameterName]; } 61 61 } 62 62 public IFixedValueParameter<IntValue> NodesInFirstHiddenLayerParameter { … … 171 171 string targetVariable = problemData.TargetVariable; 172 172 IEnumerable<string> allowedInputVariables = problemData.AllowedInputVariables; 173 IEnumerable<int> rows = problemData.TrainingIndi zes;173 IEnumerable<int> rows = problemData.TrainingIndices; 174 174 double[,] inputMatrix = AlglibUtil.PrepareInputMatrix(dataset, allowedInputVariables.Concat(new string[] { targetVariable }), rows); 175 175 if (inputMatrix.Cast<double>().Any(x => double.IsNaN(x) || double.IsInfinity(x))) … … 181 181 int nClasses = classValues.Count(); 182 182 // map original class values to values [0..nClasses-1] 183 Dictionary<double, double> classIndi zes = new Dictionary<double, double>();183 Dictionary<double, double> classIndices = new Dictionary<double, double>(); 184 184 for (int i = 0; i < nClasses; i++) { 185 classIndi zes[classValues[i]] = i;185 classIndices[classValues[i]] = i; 186 186 } 187 187 for (int row = 0; row < nRows; row++) { 188 inputMatrix[row, nFeatures] = classIndi zes[inputMatrix[row, nFeatures]];188 inputMatrix[row, nFeatures] = classIndices[inputMatrix[row, nFeatures]]; 189 189 } 190 190
Note: See TracChangeset
for help on using the changeset viewer.