Groups examples based on the selected row and column features.
(groupingFeatures: [string, string])
| 429 | |
| 430 | /** Groups examples based on the selected row and column features. */ |
| 431 | private groupExamples(groupingFeatures: [string, string]): GroupedExamples { |
| 432 | const configs: FacetingConfig[] = groupingFeatures |
| 433 | .filter((featureName) => |
| 434 | this.groupService.numericalFeatureNames.includes(featureName)) |
| 435 | .map((featureName) => ({ |
| 436 | featureName, |
| 437 | method: FacetingMethod.EQUAL_INTERVAL, |
| 438 | })); |
| 439 | const numericalBins = this.groupService.numericalFeatureBins(configs); |
| 440 | return this.groupService.groupExamplesByFeatures( |
| 441 | numericalBins, this.appState.currentInputData, groupingFeatures); |
| 442 | } |
| 443 | |
| 444 | /** |
| 445 | * Computes the `size` (width of a column, height of a row) and the `sumTo` |
no test coverage detected