Changeset 11594 for branches/Breadcrumbs/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Clustering/CSV
- Timestamp:
- 11/27/14 11:23:37 (10 years ago)
- Location:
- branches/Breadcrumbs
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Breadcrumbs
- Property svn:ignore
-
old new 8 8 FxCopResults.txt 9 9 Google.ProtocolBuffers-0.9.1.dll 10 Google.ProtocolBuffers-2.4.1.473.dll 10 11 HeuristicLab 3.3.5.1.ReSharper.user 11 12 HeuristicLab 3.3.6.0.ReSharper.user 12 13 HeuristicLab.4.5.resharper.user 13 14 HeuristicLab.ExtLibs.6.0.ReSharper.user 15 HeuristicLab.Scripting.Development 14 16 HeuristicLab.resharper.user 15 17 ProtoGen.exe … … 17 19 _ReSharper.HeuristicLab 18 20 _ReSharper.HeuristicLab 3.3 21 _ReSharper.HeuristicLab 3.3 Tests 19 22 _ReSharper.HeuristicLab.ExtLibs 20 23 bin 21 24 protoc.exe 22 _ReSharper.HeuristicLab 3.3 Tests23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/Breadcrumbs/HeuristicLab.Problems.Instances.DataAnalysis
- Property svn:mergeinfo changed
-
branches/Breadcrumbs/HeuristicLab.Problems.Instances.DataAnalysis/3.3/Clustering/CSV/ClusteringCSVInstanceProvider.cs
r9608 r11594 1 1 #region License Information 2 2 /* HeuristicLab 3 * Copyright (C) 2002-201 3Heuristic and Evolutionary Algorithms Laboratory (HEAL)3 * Copyright (C) 2002-2014 Heuristic and Evolutionary Algorithms Laboratory (HEAL) 4 4 * 5 5 * This file is part of HeuristicLab. … … 39 39 } 40 40 public override Uri WebLink { 41 get { return new Uri("http://dev.heuristiclab.com/trac /hl/core/wiki/UsersFAQ#DataAnalysisImportFileFormat"); }41 get { return new Uri("http://dev.heuristiclab.com/trac.fcgi/wiki/Documentation/FAQ#DataAnalysisImportFileFormat"); } 42 42 } 43 43 public override string ReferencePublication { … … 61 61 62 62 Dataset dataset = new Dataset(csvFileParser.VariableNames, csvFileParser.Values); 63 string targetVar = dataset.DoubleVariables.Last();64 63 65 64 // turn of input variables that are constant in the training partition … … 68 67 if (trainingIndizes.Count() >= 2) { 69 68 foreach (var variableName in dataset.DoubleVariables) { 70 if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0 && 71 variableName != targetVar) 69 if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0) 72 70 allowedInputVars.Add(variableName); 73 71 } 74 72 } else { 75 allowedInputVars.AddRange(dataset.DoubleVariables .Where(x => !x.Equals(targetVar)));73 allowedInputVars.AddRange(dataset.DoubleVariables); 76 74 } 77 75 … … 96 94 97 95 Dataset dataset = new Dataset(csvFileParser.VariableNames, values); 98 string targetVar = dataset.DoubleVariables.Last();99 96 100 97 // turn of input variables that are constant in the training partition … … 104 101 if (trainingIndizes.Count() >= 2) { 105 102 foreach (var variableName in dataset.DoubleVariables) { 106 if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0 && 107 variableName != targetVar) 103 if (dataset.GetDoubleValues(variableName, trainingIndizes).Range() > 0) 108 104 allowedInputVars.Add(variableName); 109 105 } 110 106 } else { 111 allowedInputVars.AddRange(dataset.DoubleVariables .Where(x => !x.Equals(targetVar)));107 allowedInputVars.AddRange(dataset.DoubleVariables); 112 108 } 113 109
Note: See TracChangeset
for help on using the changeset viewer.