in src/sagemaker_training/environment.py [0:0]
def _create_training_directories():
"""Create the directory structure and files necessary for training under the base path."""
logger.info("Creating a new training folder under %s ." % base_dir)
os.makedirs(model_dir)
os.makedirs(input_config_dir)
os.makedirs(output_data_dir)
_write_json({}, hyperparameters_file_dir)
_write_json({}, input_data_config_file_dir)
host_name = socket.gethostname()
resources_dict = {
"current_host": host_name,
"hosts": [host_name],
"current_instance_group": "homogeneousCluster",
"instance_groups": [
{
"instance_group_name": "homogeneousCluster",
"instance_type": "local",
"hosts": [host_name],
}
],
}
_write_json(resources_dict, resource_config_file_dir)