Uploading model results to the cloud
You are working as a data scientist on building part of your machine learning cloud infrastructure. Your team has many machine learning experiments running all the time. When an experiment is finished, it will output the results file and a configuration file into a folder called output_dir/
.
These results need to be uploaded to your cloud storage environment for analysis. Your task is to write a Bash script that contains a function which will loop through all the files in output_dir/
and upload the result files to your cloud storage.
For technical reasons, no files will be uploaded; we will simply echo out the file name. Though you could easily replace this section with code to upload to Amazon S3, Google Cloud or Microsoft Azure!
This exercise is part of the course
Introduction to Bash Scripting
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
