Changeset 6878 for branches/GeneralizedQAP/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.cs
- Timestamp:
- 10/05/11 21:55:55 (13 years ago)
- Location:
- branches/GeneralizedQAP
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GeneralizedQAP
- Property svn:ignore
-
old new 1 *.docstates 2 *.psess 1 3 *.resharper 2 4 *.suo 5 *.vsp 3 6 Google.ProtocolBuffers-0.9.1.dll 7 HeuristicLab 3.3.5.1.ReSharper.user 8 HeuristicLab 3.3.6.0.ReSharper.user 4 9 HeuristicLab.4.5.resharper.user 5 10 HeuristicLab.resharper.user … … 8 13 _ReSharper.HeuristicLab 9 14 _ReSharper.HeuristicLab 3.3 15 _ReSharper.HeuristicLab.ExtLibs 16 bin 10 17 protoc.exe 11 HeuristicLab 3.3.5.1.ReSharper.user 12 *.psess 13 *.vsp 14 *.docstates 18 HeuristicLab.ExtLibs.6.0.ReSharper.user
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Algorithms.DataAnalysis/3.4
- Property svn:ignore
-
old new 4 4 HeuristicLab.Algorithms.DataAnalysis-3.4.csproj.user 5 5 *.vs10x 6 Plugin.cs
-
- Property svn:ignore
-
branches/GeneralizedQAP/HeuristicLab.Algorithms.DataAnalysis/3.4/NeuralNetwork/NeuralNetworkEnsembleClassification.cs
r6685 r6878 127 127 public NeuralNetworkEnsembleClassification() 128 128 : base() { 129 var validHiddenLayerValues = new ItemSet<IntValue>(new IntValue[] { new IntValue(0), new IntValue(1), new IntValue(2) }); 129 var validHiddenLayerValues = new ItemSet<IntValue>(new IntValue[] { 130 (IntValue)new IntValue(0).AsReadOnly(), 131 (IntValue)new IntValue(1).AsReadOnly(), 132 (IntValue)new IntValue(2).AsReadOnly() }); 130 133 var selectedHiddenLayerValue = (from v in validHiddenLayerValues 131 134 where v.Value == 1 … … 139 142 Parameters.Add(new FixedValueParameter<IntValue>(RestartsParameterName, "The number of restarts for learning.", new IntValue(2))); 140 143 144 HiddenLayersParameter.Hidden = true; 145 NodesInFirstHiddenLayerParameter.Hidden = true; 146 NodesInSecondHiddenLayerParameter.Hidden = true; 147 RestartsParameter.Hidden = true; 148 141 149 Problem = new ClassificationProblem(); 142 150 } … … 170 178 int nRows = inputMatrix.GetLength(0); 171 179 int nFeatures = inputMatrix.GetLength(1) - 1; 172 double[] classValues = dataset.Get VariableValues(targetVariable).Distinct().OrderBy(x => x).ToArray();180 double[] classValues = dataset.GetDoubleValues(targetVariable).Distinct().OrderBy(x => x).ToArray(); 173 181 int nClasses = classValues.Count(); 174 182 // map original class values to values [0..nClasses-1]
Note: See TracChangeset
for help on using the changeset viewer.