Describe a Model
The describe
command is used to display the attributes of an existing model. It accepts the name of the model and describe attribute separated by ’.’ as an argument.
Here is how to call the describe
command:
Where:
Name | Description |
---|---|
predictor_name | The name of the predictor whose statistics you want to see. |
attribute | The argument of the describe command defines the type of statistics (features , or model , or ensemble ). |
The describe
Command with the features
Parameter
Description
The db.runCommand({describe: "predictor_name.features"})
command is used to display the
way the model encoded the data before training.
Syntax
Here is the syntax:
On execution, we get:
Where:
Name | Description |
---|---|
"column" | The name of the column. |
"type" | Type of the inferred data. |
"encoder" | Encoder used. |
"role" | Role of the column (feature or target ). |
Example
Let’s describe the home_rentals_model
model.
On execution, we get:
The describe
Command with the model
Parameter
Description
The db.runCommand({describe: "predictor_name.model"})
method is used to display the
performance of the candidate models.
Syntax
Here is the syntax:
On execution, we get:
Where:
Name | Description |
---|---|
"name" | Name of the candidate model. |
"performance" | Accuracy from 0 to 1 depending on the type of the model. |
"training_time" | Time elapsed for the training of the model. |
"selected" | 1 for the best performing model and 0 for the rest. |
Example
Let’s see the output for the home_rentals_model
model.
On execution, we get:
The describe
Command with the ensemble
Parameter
Description
The db.runCommand({describe: "predictor_name.ensemble"})
command is used to display the
parameters used to select the best candidate model.
Syntax
Here is the syntax:
On execution, we get:
Where:
Name | Description |
---|---|
ensemble | Object of the JSON type describing the parameters used to select the best candidate model. |
Was this page helpful?