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.
Stopwatch
A wall-clock stopwatch with sub-millisecond resolution, for training time.
Accumulates across Start/Stop pairs until Reset. Built on System.Time.Timer, which measures elapsed (wall-clock) time on every platform.
Example
sw := Stopwatch->New();
sw->Start();
model->Fit(train_x, train_y);
ms := sw->Stop();
"fit took {$ms} ms"->PrintLine();Operations
GetElapsedMs #
Total elapsed milliseconds, including the interval still running.
method : public : GetElapsedMs() ~ FloatReturn
| Type | Description |
|---|---|
| Float | milliseconds |
GetElapsedSeconds #
Total elapsed seconds, including the interval still running.
method : public : GetElapsedSeconds() ~ FloatReturn
| Type | Description |
|---|---|
| Float | seconds |