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.
KNeighbor
K-Neighbor result
Implements: Compare
Operations
Compare #
Compares neighbors
method : public : Compare(rhs:System.Compare) ~ IntParameters
| Name | Type | Description |
|---|---|---|
| rhs | Compare | neighbor to compare |
Return
| Type | Description |
|---|---|
| Int | 0 if equal, -1 if types differ, 1 if equal |
GetCategory #
Get the category label
method : public : GetCategory() ~ StringReturn
| Type | Description |
|---|---|
| String | category label |
GetDistance #
Get the distance
method : public : GetDistance() ~ FloatReturn
| Type | Description |
|---|---|
| Float | distance |
HashID #
Returns a unique hash ID for a boolean
method : public : HashID() ~ IntReturn
| Type | Description |
|---|---|
| Int | hash ID |