v2026.11.2
All Bundles
Bundle

Core machine learning types: the seedable Random generator, Matrix2D linear algebra and activations, matrix reference holders, the NeuralNetwork and CSV-backed MatrixReader. Compile with -lib ml.

SweepResult

A sensitivity sweep's table: per setting, its name and value, the confusion counts, and the AUC of the scores at that setting (-1.0 when undefined).

Operations

GetAuc #

The AUC of the scores at a row's setting (Metrics->AucRoc).

method : public : GetAuc(i:Int) ~ Float

Parameters

NameTypeDescription
iIntrow

Return

TypeDescription
FloatAUC, or -1.0 when the setting failed or one class is absent

GetConfusion #

A row's confusion counts and rates.

method : public : GetConfusion(i:Int) ~ ConfusionMatrix

Parameters

NameTypeDescription
iIntrow

Return

TypeDescription
ConfusionMatrixcounts, or Nil when the setting failed (see GetError)

GetError #

Why a row's setting failed.

method : public : GetError(i:Int) ~ String

Parameters

NameTypeDescription
iIntrow

Return

TypeDescription
Stringthe reason, or an empty string

GetName #

A row's name, e.g. "Low".

method : public : GetName(i:Int) ~ String

Parameters

NameTypeDescription
iIntrow

Return

TypeDescription
Stringname

GetSetting #

A row's setting value.

method : public : GetSetting(i:Int) ~ Float

Parameters

NameTypeDescription
iIntrow

Return

TypeDescription
Floatvalue

GetSettingName #

What the settings are, e.g. "contamination".

method : public : GetSettingName() ~ String

Return

TypeDescription
Stringthe detector's sensitivity name

Size #

Settings in the table.

method : public : Size() ~ Int

Return

TypeDescription
Introw count

ToTable #

The table as text: setting, value, flagged, TP FP TN FN, precision, recall, F1, FPR and AUC, one row per setting.

method : public : ToTable() ~ String

Return

TypeDescription
Stringtable