Train Tensorflow Model in Google Cloud ML Engine in Python

551 Views Asked by At

can i train a Tensorflow Model in Google cloud machine learning Engine in python without using the commande Line :

     `gcloud ml-engine jobs submit training $JOB_NAME \
          --job-dir $OUTPUT_PATH \
          --runtime-version 1.2 \
          --module-name trainer.task \
          --package-path trainer/ \
          --region $REGION \ `

i aim to run the task from my python script

2

There are 2 best solutions below

0
rhaertel80 On

Yes. gcloud ml-engine is just the CLI to the CloudML Engine REST API. The API documentation can be found here. Sample code can be found here; click on the Python tab.

0
boby aloysius johnson On

You can use REST API or libraries of different languages written over the REST API.

Here is the Google API PHP client service link. You can refer to github.com/boaloysius/google-ml-engine-rest.

Here is the reference to https://cloud.google.com/ml-engine/docs/python-guide.