- Import the required libraries and functions to call teradataml code before using teradatamlwidgets.
import os, teradataml from teradataml import get_connection, DataFrame from teradataml import save_byom, retrieve_byom, load_example_data from teradataml import configure, display_analytic_functions, execute_sql
- Load the example data.
load_example_data("byom", "iris_test") - Create the teradataml DataFrame objects.
iris_test = DataFrame.from_table("iris_test") - Load the model file into Vantage.
model_file = os.path.join(os.path.dirname(teradataml.__file__), "data", "models", "dr_iris_rf" try: save_byom("dr_iris_rf", model_file, "byom_model") except: pass - Set the parameters:
- Set Function to DataRobotPredict.
- Set BYOM Install to mldb.
- Set InputTable to iris_test.
- Set ModelID to dr_iris_rf.
- Set ModelTable to byom_models.
- Set Accumulate to sepal_length, petal_length, petal_width.
- Set OverwriteCachedModel to *.
- Select Execute.
Load data and DataFrame objects
Load model into Vantage
Set the parameters