General Structure
On start-up, the MindsDB project consists of 2 collections:models and models_versions.
You can verify it by running the following MQL commands:
-
First, switch to the
mindsdbproject. -
Then, query for the available collections.
The models Collection
The models collection stores information about the models, such as name, status, accuracy, and more.
| Name | Description |
|---|---|
NAME | The name of the model. |
ENGINE | The engine used to create the model. |
PROJECT | The project where the model resides. |
VERSION | The version of the model. |
STATUS | Training status (generating, or training, or complete, or error). |
ACCURACY | The model accuracy (0.999 is a sample accuracy value). |
PREDICT | The name of the target column to be predicted. |
UPDATE_STATUS | Training update status (up_to_date, or updating, or available). |
MINDSDB_VERSION | The MindsDB version used while training (22.8.2.1 is a sample version value). |
ERROR | Error message stores a value in case of an error, otherwise, it is null. |
SELECT_DATA_QUERY | It is a query that selects input data. |
TRAINING_OPTIONS | Additional training parameters. |
TAG | The models can have tags to classify them into categories. |
The models_versions Collection
The models_versions collection stores information about all present and past versions of each model.
| Name | Description |
|---|---|
NAME | The name of the model. |
ENGINE | The engine used to create the model. |
PROJECT | The project where the model resides. |
ACTIVE | The status of the model’s version. The value of true if active, the value fo false if inactive. |
VERSION | The version of the model. |
STATUS | Training status (generating, or training, or complete, or error). |
ACCURACY | The model accuracy (0.999 is a sample accuracy value). |
PREDICT | The name of the target column to be predicted. |
UPDATE_STATUS | Training update status (up_to_date, or updating, or available). |
MINDSDB_VERSION | The MindsDB version used while training (22.8.2.1 is a sample version value). |
ERROR | Error message stores a value in case of an error, otherwise, it is null. |
SELECT_DATA_QUERY | It is a query that selects input data. |
TRAINING_OPTIONS | Additional training parameters. |
TAG | The models can have tags to classify them into categories. |