- Timestamp:
- 04/02/14 14:28:19 (11 years ago)
- Location:
- branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/HeuristicLab.DataPreprocessing-3.3.csproj
r10698 r10709 72 72 </ItemGroup> 73 73 <ItemGroup> 74 <Compile Include="Implementations\ManipulationContent.cs" /> 74 75 <Compile Include="Implementations\PreprocessingChartContent.cs" /> 75 76 <Compile Include="Implementations\PreprocessingData.cs" /> -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/LineChartContent.cs
r10658 r10709 25 25 26 26 namespace HeuristicLab.DataPreprocessing { 27 27 28 [Item("LineChart", "Represents the line chart grid.")] 28 29 public class LineChartContent : PreprocessingChartContent { 29 30 30 public LineChartContent(IChartLogic chartlogic) :base(chartlogic) { 31 public LineChartContent(IChartLogic chartlogic) 32 : base(chartlogic) { 31 33 } 32 34 -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Implementations/ManipulationLogic.cs
r10672 r10709 181 181 } 182 182 183 public void ShuffleWithRanges() { 184 ShuffleWithRanges(new[] { 185 preprocessingData.TestPartition, 186 preprocessingData.TrainingPartition 187 }); 188 } 189 183 190 public void ShuffleWithRanges(IEnumerable<IntRange> ranges) { 184 191 // init random outside loop … … 186 193 187 194 preprocessingData.InTransaction(() => { 188 // process all given ranges - e.g. TrainingPartition, T rainingpartition195 // process all given ranges - e.g. TrainingPartition, TestPartition 189 196 foreach (IntRange range in ranges) { 190 197 List<Tuple<int, int>> shuffledIndices = new List<Tuple<int, int>>(); 191 198 192 199 // generate random indices used for shuffeling each column 193 for (int i = range.End ; i >range.Start; --i) {200 for (int i = range.End - 1; i >= range.Start; --i) { 194 201 int rand = random.Next(range.Start, i); 195 202 shuffledIndices.Add(new Tuple<int, int>(i, rand)); -
branches/DataPreprocessing/HeuristicLab.DataPreprocessing/3.3/Interfaces/IManipulationLogic.cs
r10672 r10709 34 34 void ReplaceIndicesByValue(IDictionary<int, IList<int>> cells, string value); 35 35 void ReplaceIndicesByValue<T>(int columnIndex, IEnumerable<int> rowIndices, T value); 36 void ShuffleWithRanges(); 36 37 void ShuffleWithRanges(IEnumerable<HeuristicLab.Data.IntRange> ranges); 37 38 }
Note: See TracChangeset
for help on using the changeset viewer.