User Tools

Site Tools


googlecloud

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
googlecloud [2017/10/19 03:48]
humphrey
googlecloud [2021/06/30 23:42] (current)
Line 26: Line 26:
  --module-name [scource_dir.main_script] ​  --module-name [scource_dir.main_script] ​
  --staging-bucket gs://​[save_to_directory]  --staging-bucket gs://​[save_to_directory]
- --scale-tier ​BASIC + --scale-tier ​BASIC_GPU
 </​code>​ </​code>​
  
Line 33: Line 33:
 The command "​gcloud ml-engine jobs submit training"​ is a google cloud version to package up our python machine learning job, uploading that to the cloud platform and then run it on some cloud machines. There four fields are required: The command "​gcloud ml-engine jobs submit training"​ is a google cloud version to package up our python machine learning job, uploading that to the cloud platform and then run it on some cloud machines. There four fields are required:
  
- a. job: in our example, the value is [job_id] in the example, it's the job id showing up in the web api after submitting the job.+ a. job: In our example, the value is [job_id] in the example, it's the job id showing up in the web api after submitting the job.
   ​   ​
- b. package-path: ​the local machine directory which contains the python source code.+ b. package-path: ​The local machine directory which contains the python source code.
   ​   ​
- c. module-name: ​the main python script.+ c. module-name: ​The main python script.
   ​   ​
- d. staging-bucket: ​the place on google cloud in which the machine learning source code is stored.+ d. staging-bucket: ​The place on google cloud in which the machine learning source code is stored.
  
 and these are optional: and these are optional:
  
- e. scale-tier: ​this is optionalbut allow a fine control on how much computation power we want to use with the project.+ e. scale-tier: ​There are BASICBASIC_GPU, PREMIUM_1, STANDARD_1, CUSTOM, five different tiers, standing for different level of resources ​to be used.
    
- ​f. ​package-paththe path where packages you imported into the project but not listed here: https://​cloud.google.com/​ml-engine/​docs/​concepts/​runtime-version-list+ ​f. ​packagesThe path where packages you imported into the project but not listed here: https://​cloud.google.com/​ml-engine/​docs/​concepts/​runtime-version-list
  
 ---- ----
Line 60: Line 60:
  return dic  return dic
 </​code>​ </​code>​
 +
 +3. You need a <​code>​__init__.py</​code>​ file in your source code directory in order to make it work. You can keep it as an empty file.
  
 ---- ----
googlecloud.1508384905.txt.gz ยท Last modified: 2021/06/30 23:40 (external edit)