in src/sagemaker_sklearn_container/training.py [0:0]
def train(training_environment):
"""Runs Scikit-learn training on a user supplied module in local SageMaker environment.
The user supplied module and its dependencies are downloaded from S3.
Training is invoked by calling a "train" function in the user supplied module.
Args:
training_environment: training environment object containing environment variables,
training arguments and hyperparameters
"""
logger.info('Invoking user training script.')
entry_point.run(uri=training_environment.module_dir,
user_entry_point=training_environment.user_entry_point,
args=training_environment.to_cmd_args(),
env_vars=training_environment.to_env_vars(),
runner_type=runner.ProcessRunnerType)