Important: Use JupyterHub to load your own predictive model data into a Vantage table. A PMML model must be stored in a BLOB datatype column. Vantage Trial does not support uploading BLOB data type in Editor and does not support BTEQ or Teradata Studio.
- Convert your model to PMML.
- From your site page, select .
- Create a folder in JupyterHub for your model and upload your PMML file into the folder.
- Create a new Python notebook in the same folder.
- From the notebook, load the model into a Vantage table using the following code.
import teradataml as tdml import tdconnect tdconnect.create_context('Vantage') model_bytes = open("sample_model.xml", "rb").read() with tdml.get_connection() as conn: conn.execute("insert into PMML_MODELS_TABLE_NAME values ('sample_model_id', ?)", model_bytes)
- Call the BYOM Predict function to score the model.