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() ~ BoolMatrixRefReturn
| Type | Description |
|---|---|
| BoolMatrixRef | bootstrapped dataset |
Columns #
Returns the number of columns in the matrix
method : public : Columns() ~ IntReturn
| Type | Description |
|---|---|
| Int | number of columns in the matrix |
New # constructor
Copy constructor
New(value:Bool[,])Parameters
| Name | Type | Description |
|---|---|---|
| value | Bool | boolean value |
Rows #
Returns the number of rows in the matrix
method : public : Rows() ~ IntReturn
| Type | Description |
|---|---|
| Int | number of rows in the matrix |
Split #
Splits a 2D boolean matrix
method : public : Split(training_offset:Float) ~ BoolMatrixRef[]Parameters
| Name | Type | Description |
|---|---|---|
| training_offset | Float | index of first column with target data. The first element is the train dateset, while the second is the test data |
Return
| Type | Description |
|---|---|
| BoolMatrixRef | split matrix of training and data sets |