Skip to main content
OcientML™ functionality supports these SQL functions for machine learning models.
The scope of a machine learning model is the schema.

Supported Machine Learning Models

Supported machine learning models and reference material are divided into these categories.
For functions to help organize data before training a model, see Data Preparation.

Regression Models

Classification Models

Clustering and Dimension Reduction Models

Ensemble Models

Other Models

For a view of the full list of model options, see Machine Learning Model Options.

Execute a Query Using a Machine Learning Model

To create a machine learning model and manage the model, see Machine Learning Models for the corresponding syntax. After you create the model, you can execute a query using the model with this syntax. Syntax
SQL
Example Create a table with data for the model.
SQL
Create a multiple linear regression model based on the data.
SQL
Execute a SELECT query against the multiple linear regression to see the actual and predicted values. Limit the result set to 10 rows.
SQL
Output
Text

Machine Learning Meta Functions

Machine Learning meta functions provide additional ways to invoke a trained model. Unlike calling a model directly by name, meta functions wrap the model invocation and control how the model produces its output.

predict

The predict meta function behaves the same as invoking the model directly as a function. The function returns the value predicted by the specified model for the input features. Syntax
SQL
Example
SQL
Because many models do not require hyperarguments, the hyperargument list and its surrounding parentheses are optional.
SQL

predict_probabilities

The predict_probabilities meta function returns a tuple of label-score pairs for each possible class the model can predict. The model assigns each label a score determined by the input features. Then, the model sorts the pairs in decreasing order of score, with ties broken by decreasing label value. This function is supported only for these model types:
  • Decision Tree
  • Random Forest
  • Logistic Regression
  • Support Vector Machine
  • Gaussian Discriminant Analysis
  • Gaussian Mixture Model
  • MLP (only when trained with softmax output for classification)
All other model types reject the predict_probabilities function, including all regression variants, Naive Bayes, Linear Discriminant Analysis, Principal Component Analysis, ensemble models (Bagging, Stacking), K-Means, Power Iteration Clustering, K Nearest Neighbors, and anomaly detection models. Undersampling models do not support either meta function because they produce output tables rather than row-level predictions. Syntax
SQL
Example
SQL
Machine Learning in Ocient Machine Learning Models
Last modified on September 23, 2026