Google Machine Learning Engine with php library.Demonstrate how to use
Following are the steps in using machine learning engine for prediction.
- Create a service account and download the credential json file.
- Package and upload the code to Google cloud.
- Composer install libraries.
- Upload training and testing data to Google Cloud Storage using storage.php
- Train the model using jobs/create.php. This will set a job to train the model. We can use jobs/list.php to list all the jobs in our project and jobs/get.php to get a job details by name.
- Deploy the model using deploy.php
- Predict using predict.php