Property cloudObj | teradataml Extension Library | API Integration - Property cloudObj - Teradata VantageCloud Lake

Lake - Analyze Your Data with ClearScape Analytics™

Deployment
VantageCloud
Edition
Lake
Product
Teradata VantageCloud Lake
Release Number
Published
February 2025
ft:locale
en-US
ft:lastEdition
2026-02-20
dita:mapPath
tcl1683670667798.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
tcl1683670667798
TDApiClient exposes the following classes:
  • Two estimator wrapper classes (returned by TDApiClient.<sagemaker_class_name>)
  • One predictor wrapper classes (returned by deploy method)
Users can use this cloudObj property to access objects from Amazon SageMaker Python library.
The syntax is:
  • estimatorWrapper.cloudObj
  • predictoWrapper.cloudObj

Example

from tdapiclient import create_tdapi_context, TDApiClient
awsContext = create_tdapi_context("aws", "s3_bucket")
sagemakerTD = TDApiClient(awsContext)
mxnetEstimaterWrapperObj = sagemakerTD.MXNet('train.py',
                                    role='SageMakerRole',
                                    instance_type='ml.p2.xlarge',
                                    instance_count=1,
                                    py_version="py3",
                                    framework_version='1.2.1')
mxnetEstimaterWrapperObj.cloudObj
inputDF = DataFrame("inputTable")
mxnetEstimaterWrapperObj.fit(inputs=inputDF, content_type='json')
predictorWrapperObj = mxnetEstimaterWrapperObj.deploy(sagemaker_kw_args={"instance_type": "ml.p2.xlarge", "initial_instance_count": 1})
predictorWrapperObj.cloudObj