I am using Sagemaker platform for model development and deployment. Data is read from RDS tables and then spitted to train and test df. To create the training job in Sagemaker, I found that it takes data source only as s3 and EFS. For that I need to keep train and test data back to s3, which is repeating the data storing process in RDS and s3. I would want to directly pass the df from RDS as a parameter in tarining job code. Is there any way we can pass df in fit method
image="581132636225.dkr.ecr.ap-south-1.amazonaws.com/sagemaker-ols-model:latest"
model_output_folder = "model-output"
print(image)
tree = sagemaker.estimator.Estimator(
image,
role,
1,
"ml.c4.2xlarge",
output_path="s3://{}/{}".format(sess.default_bucket(), model_output_folder),
sagemaker_session=sess,
)
**tree.fit({'train': "s3_path_having_test_data"}, wait=True)**