Bundle
Experiment support for a parameter sweep: a deterministic stratified hold-out split, class-ratio resampling of the training half against a fixed test set, a wall-clock stopwatch and label helpers. Compile with -lib ml,ml_lab,csv,json, or with the ai alias group. Design: docs/ML_LAB_SUPPORT_DESIGN.md.
Sample
A resampled training set: features, labels and the source row of every row, so duplicates from oversampling are visible.
Operations
GetPositiveRatio #
Share of positive rows actually achieved; report this, not the request.
method : public : GetPositiveRatio() ~ FloatReturn
| Type | Description |
|---|---|
| Float | positives over rows |
GetRows #
Source row of each row of the sample. A row drawn twice by oversampling appears twice.
method : public : GetRows() ~ Int[]Return
| Type | Description |
|---|---|
| Int | row indexes into the matrix that was resampled |