v2026.11.2
All Bundles
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.

ChartSeries

One series of a Chart: a name, x and y values, optional symmetric error bars, drawn as a line with markers or as bars.

Operations

GetErrors #

Error bars.

method : public : GetErrors() ~ Float[]

Return

TypeDescription
Floatone per point, or Nil

GetName #

Legend entry.

method : public : GetName() ~ String

Return

TypeDescription
Stringthe name

GetXs #

x values.

method : public : GetXs() ~ Float[]

Return

TypeDescription
Floatone per point

GetYs #

y values.

method : public : GetYs() ~ Float[]

Return

TypeDescription
Floatone per point

IsBars #

Whether the series draws as bars.

method : public : IsBars() ~ Bool

Return

TypeDescription
Booltrue for bars

New # constructor

Constructor

New(name:String, xs:Float[], ys:Float[], errs:Float[], bars:Bool)

Parameters

NameTypeDescription
nameStringlegend entry
xsFloatx values (category indexes for bars)
ysFloaty values
errsFloatsymmetric error per point, or Nil
barsBooltrue to draw bars, false for a line

Size #

Points in the series.

method : public : Size() ~ Int

Return

TypeDescription
Intpoint count