v2026.5.3
All Bundles
Bundle Machine learning library with linear regression, logistic regression, k-means clustering, and matrix operations. Designed for tabular data; supports training, prediction, and model evaluation. Compile with -lib ml.

BoolMatrixRef

Boolean matrix reference

Operations

Bootstrap # native

Builds random bootstrapped dataset

method : public : native : Bootstrap() ~ BoolMatrixRef

Return

TypeDescription
BoolMatrixRefbootstrapped dataset

Columns #

Returns the number of columns in the matrix

method : public : Columns() ~ Int

Return

TypeDescription
Intnumber of columns in the matrix

Get #

Get boolean value

method : public : Get() ~ Bool[,]

Return

TypeDescription
Boolboolean value

New # constructor

Default constructor

New()

New # constructor

Copy constructor

New(value:Bool[,])

Parameters

NameTypeDescription
valueBoolboolean value

Rows #

Returns the number of rows in the matrix

method : public : Rows() ~ Int

Return

TypeDescription
Intnumber of rows in the matrix

Split #

Splits a 2D boolean matrix

method : public : Split(training_offset:Float) ~ BoolMatrixRef[]

Parameters

NameTypeDescription
training_offsetFloatindex of first column with target data. The first element is the train dateset, while the second is the test data

Return

TypeDescription
BoolMatrixRefsplit matrix of training and data sets

ToString #

Formats the matrix into a string

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation