Package mindsdb.services
Class Models
java.lang.Object
mindsdb.services.Models
Models service class for handling models.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(String name, String predict, String engine, String query, String database, Map<String, Object> options, Map<String, Object> timeseriesOptions) Create a new modelvoid
Drop a modelvoid
dropVersion
(String name, int version) Drop a model versionGet a specific model by namegetModelWithVersion
(String name, Integer version) Get a specific model by name and versionlistModels
(String name) List all modelslistModelsWithVersion
(String name, Integer version) List all models with version
-
Constructor Details
-
Models
Constructor for Models- Parameters:
project
- - Project objectapi
- - RestAPI object
-
-
Method Details
-
listModels
List all models- Parameters:
name
- - name of the model- Returns:
- List of Model objects
-
listModelsWithVersion
List all models with version- Parameters:
name
- - name of the modelversion
- - version of the model- Returns:
- List of ModelVersion objects
-
getModel
Get a specific model by name- Parameters:
name
- - name of the model- Returns:
- Model object
-
getModelWithVersion
Get a specific model by name and version- Parameters:
name
- - name of the modelversion
- - version of the model- Returns:
- ModelVersion object
-
create
public Model create(String name, String predict, String engine, String query, String database, Map<String, Object> options, Map<String, Object> timeseriesOptions) Create a new model- Parameters:
name
- - name of the modelpredict
- - predict columnengine
- - engine namequery
- - query for the modeldatabase
- - database nameoptions
- - options for the modeltimeseriesOptions
- - timeseries options for the model- Returns:
- Model object
-
drop
Drop a model- Parameters:
name
- - name of the model
-
dropVersion
Drop a model version- Parameters:
name
- - name of the modelversion
- - version of the model
-