Closed tkilias closed 2 years ago
For the Python UDF we still need them
def udf_wrapper(): from exasol_udf_mock_python.udf_context import UDFContext from exasol_sagemaker_extension.autopilot_training_udf import AutopilotTrainingUDF
def mocked_training_method(**kwargs): return "test_job_name"
udf = AutopilotTrainingUDF(exa, training_method=mocked_training_method)
def run(ctx: UDFContext): udf.run(ctx)
the CREATE STATEMENT would look like
CREATE PYTHON3 SET SCRIPT AutopilotTrainingUDF(model_name VARCHAR(23), ....) EMITS (model_name VARCHAR(32)) AS from exasol_sagemaker_extension.autopilot_training_udf import AutopilotTrainingUDF udf = AutopilotTrainingUDF(exa) def run(ctx): udf.run(ctx) /
Background
For the Python UDF we still need them
def mocked_training_method(**kwargs): return "test_job_name"
udf = AutopilotTrainingUDF(exa, training_method=mocked_training_method)
def run(ctx: UDFContext): udf.run(ctx)
the CREATE STATEMENT would look like
Acceptance Criteria