Skip to content

model train

GitHub Action edited this page Jul 9, 2026 · 1 revision
void train(std::string input, size_t epochs = 100)

Basic Info

Trains the model.

Return Type

Returns void

Parameters

Parameter Type Use Optional
input std::string Corpus
epochs size_t Epochs

Example

// Calling the train() function
model m();
m.train("Hello, World! My name is Billy Bob Joe and I like cheese!", 12);

Clone this wiki locally