Machine Learning Functions
The documentation below is automatically generated from system.functions
evalMLMethod
Introduced in: v20.1.0
Applies a trained machine learning model to input features to generate predictions.
Syntax
Arguments
model— The trained machine learning model.AggregateFunctionStatex1, x2, ...— Feature values for prediction.Float*or(U)Int*
Returned value
Returns the predicted value based on the trained model. Float64
Examples
Example usage
naiveBayesClassifier
Introduced in: v25.11.0
Classifies input text using a NAIVE_BAYES dictionary. Returns the same predicted class value as dictGet(dictionary_name, class_attribute, input_text), where class_attribute is the name of the class label attribute configured in the dictionary's layout. Unlike dictGet, the result type is always UInt32 rather than the declared type of the class attribute, and input_text must be a String (no key type conversion is applied).
This function is non-deterministic: it can return different results for the same arguments.
Syntax
Arguments
dictionary_name— Name of a dictionary with the NAIVE_BAYES layout.Stringinput_text— Text to classify.String
Returned value
Predicted class ID. UInt32
Examples
Classify text
naiveBayesClassifierWithAllProbs
Introduced in: v26.7.0
Classifies input text using a NAIVE_BAYES dictionary and returns all classes with their probabilities, ordered from most to least probable.
This function is non-deterministic: it can return different results for the same arguments.
Syntax
Arguments
dictionary_name— Name of a dictionary with the NAIVE_BAYES layout.Stringinput_text— Text to classify.String
Returned value
Array of (class_id, probability) tuples ordered from most to least probable. Array(Tuple(UInt32, Float64))
Examples
All class probabilities
naiveBayesClassifierWithProb
Introduced in: v26.7.0
Classifies input text using a NAIVE_BAYES dictionary and returns the predicted class with its probability.
This function is non-deterministic: it can return different results for the same arguments.
Syntax
Arguments
dictionary_name— Name of a dictionary with the NAIVE_BAYES layout.Stringinput_text— Text to classify.String
Returned value
Tuple of (class_id, probability). Tuple(UInt32, Float64)
Examples
Classify with probability