Changeset 7994 for branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues
- Timestamp:
- 06/12/12 16:30:34 (12 years ago)
- Location:
- branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteColumnsWithMissingValuesThresholdCommand.cs
r7968 r7994 52 52 53 53 oldColumn = ColumnGroup.GetColumn(oldColumnIndex); 54 if ((double)oldColumn.N ullValuesCount / (double)oldColumn.TotalValuesCount < Threshold) {54 if ((double)oldColumn.NonNullValuesCount / (double)oldColumn.TotalValuesCount < Threshold) { 55 55 ColumnGroup.RemoveColumn(oldColumn); 56 56 } else { -
branches/HeuristicLab.DataImporter/HeuristicLab.DataImporter.Command/MissingValues/DeleteRowsWithMissingValuesThresholdCommand.cs
r7968 r7994 57 57 for (int rowInd = 0; rowInd < ColumnGroup.RowCount; rowInd++) { 58 58 row = ColumnGroup.GetRow(rowInd); 59 double missingValues = ColumnGroup.GetRow(rowInd).Where(x => x != null).Count();60 if ( missingValues / columnsCount < Threshold) {59 double setValues = ColumnGroup.GetRow(rowInd).Where(x => x != null).Count(); 60 if (setValues / columnsCount < Threshold) { 61 61 deletedRows[rowInd] = row; 62 62 }
Note: See TracChangeset
for help on using the changeset viewer.