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

BayesEntry

Naive Bayes entry of term with counts

Operations

GetCount #

Get the entry count

method : public : GetCount() ~ Int

Return

TypeDescription
Intentry count

GetName #

Get the entry name

method : public : GetName() ~ String

Return

TypeDescription
Stringentry name

New # constructor

Constructor

New(name:String, count:Int)

Parameters

NameTypeDescription
nameStringentry name
countIntcount of occurrences

SetCount #

Set the entry count

method : public : SetCount(count:Int) ~ Nil

Parameters

NameTypeDescription
countIntentry count