Describe a Model
Description
The DESCRIBE
statement is used to display the attributes of an existing model.
The available options to describe a model depend on the underlying engine.
Syntax
Here is how to retrieve general information on the model:
Or:
This command is similar to the below command:
One difference between these two commands is that DESCRIBE
outputs an additional column that stores all available options to describe a model, depending on the underlying engine.
Examples
Lightwood Models
MindsDB uses the Lightwood engine by default. Let’s see how to describe such models.
On execution we get:
The tables
output column lists all available options to describe a model.
The above command returns the following output columns:
Name | Description |
---|---|
accuracies | It lists the accuracy function used to evaluate the model and the achieved score. |
column_importances | It lists all feature-type columns and assigns importance values. |
outputs | The target column. |
inputs | All the feature columns. |
NLP Models
MindsDB offers NLP models that utilize either Hugging Face or OpenAI engines. Let’s see how to describe such models.
On execution we get:
The tables
output column lists all available options to describe a model.
The above command returns the following output columns:
Name | Description |
---|---|
key | It stores parameters, such as prompt_template and target . |
value | It stores parameter values. |
Nixtla Models
MindsDB integrates Nixtla engines, such as StatsForecast, NeuralForecast, and HierarchicalForecast. Let’s see how to describe models based on Nixtla engines.
On execution we get:
The tables
output column lists all available options to describe a model.
The above command returns the following output columns:
Name | Description |
---|---|
accuracies | It lists the chosen model name and its accuracy score. |
outputs | The target column. |
inputs | All the feature columns. |
Other Models
Models that utlize LangChain or are brought to MindsDB via MLflow can be described as follows:
The above command returs ["info"]
in its first output column.
The above command lists basic model information.
If you need more information on how to DESCRIBE [MODEL]
or understand the results, feel free to ask us on the community Slack workspace.
Was this page helpful?