Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The first phase of the project was to setup a basic connection with Google cloud. In this phase, we create the machine learning model. It involves,
- Collecting and organizing data from Drupal. User must be given flexibility to select data from different content types and fileds. The data sent to create model must be labelled, so we must use taxonomy based labelling of the data.
- Sending data to Google Cloud Storage.The Google Cloud Storage JSON API is a simple, JSON-backed interface for accessing and manipulating Google Cloud Storage projects in a programmatic way. It is fully compatible with the Cloud Storage Client Libraries. For more information read the json api documentation.
- Train the model using the data stored in Google Cloud Storage. Update the model using dynamic data from Drupal. Read Google Prediction API quick start documentation
- Predict the label of new data.
References:
- Github link of Google Cloud Client API for PHP.
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/v0.30.1/src... - Cloud Bucket functions
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/v0.30.1/src... - Google Machine Learning Engine - Online prediction JSON API documentation https://cloud.google.com/ml-engine/reference/rest/v1/projects/predict
Comments
Comment #2
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #3
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #4
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #5
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedGithub link of Google Cloud Client API for PHP.
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/v0.30.1/src...
Cloud Bucket functions
https://github.com/GoogleCloudPlatform/google-cloud-php/blob/v0.30.1/src...
Comment #6
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedGoogle Machine Learning Engine - Online prediction JSON API documentation https://cloud.google.com/ml-engine/reference/rest/v1/projects/predict
Comment #7
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #8
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedComment #9
boaloysius CreditAttribution: boaloysius as a volunteer and at Google Summer of Code commentedhttps://cloud.google.com/ml-engine/docs/tutorials/python-guide