Models
Remove a Model
Description
The db.predictors.deleteOne()
method deletes an ML model specified in its argument.
Syntax
Here is the syntax:
On execution, we get:
Where:
Name | Description |
---|---|
name | Name of the model to be deleted. |
Example
Before deleting a predictor, let’s list all the available predictors using the db.predictors.find()
method.
On execution, we get:
The db.predictors.deleteOne()
method drops the model collection called home_rentals_model
.
On execution, we get:
You can validate that the model was removed by listing all the predictors.
On execution, we get: