vastorbit.machine_learning.vast.automl.AutoML.import_models¶
- static AutoML.import_models(path: str, schema: str | None = None, kind: Literal['pmml', 'VAST', 'VAST_models', 'tensorflow', 'tf', None] = None) bool¶
Imports machine learning models.
- Parameters:
path (str) –
Absolute path of an output directory to store the exported models.
Warning
This function operates solely on the server side and is not accessible locally. The
pathprovided should match the location where the file(s) will be exported on the server.schema (str, optional) – Schema name.
kind (str, optional) –
- One of the following:
pmml
VAST
tensorflow
- Returns:
Trueif the model was successfully imported.- Return type:
bool
Examples
Let’s consider we’ve fitted a VAST model named ‘my_model’. We want to import it in the ‘my_schema’ schema.
You can import it easily:
from vastorbit.machine_learning.vast.base import VASTModel VASTModel.import_models( path = 'server_location' schema = 'my_schema', kind = 'pmml', # Pick up the import type. )
Warning
This function operates solely on the server side and is not accessible locally.