Filter rows based on random sampling
1 General
- Type: - Matrix Processing
- Heading: - Filter rows
- Source code: FilterRandomRows.cs
2 Brief description
A given number of rows is kept based on random decisions.
Output: The filtered matrix.
3 Parameters
3.1 Number of rows
The filtering is based on random decisions, where a given number of rows is kept (default: total number of rows in the matrix).
3.2 Filter mode
The “Filter mode” defines, whether the input matrix will be reduced (“Reduce matrix” = default) or a new categorical column called “Filter” will be generated containing the categories “Keep” and “Discard” (“Filter mode” = “Add categorical column”).