v2026.6.0
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.

BayesGroup

Naive Bayes group of entries

Operations

AddEntry #

Adds an entry

method : public : AddEntry(entry:BayesEntry) ~ Bool

Parameters

NameTypeDescription
entryBayesEntryentry to add

Return

TypeDescription
Booltrue if added, false otherwise

GetEntries #

Gets entries

method : public : GetEntries() ~ Map<String,BayesEntry>

Return

TypeDescription
Map<String,BayesEntry>entries

GetProbability #

Gets the initial probability

method : public : GetProbability() ~ Float

Return

TypeDescription
Floatprobability

New # constructor

Sets the initial probability

New(prob:Float)

Parameters

NameTypeDescription
probFloatinitial probability