1
votes

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

2 Answers

0
votes

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
votes

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.