Skip to content

Commit a5cbb3d

Browse files
alecglassfordtswast
authored andcommitted
Rename Cloud ML Engine to AI Platform (#2105)
* Rename Cloud ML Engine to AI Platform Renames all instances of the following terms in strings and other text: * Cloud Machine Learning Engine * Cloud ML Engine * ML Engine To be cautious about broken links, this change doesn't rename any files or change any URLs. (The ml_engine directory may be renamed later, after a sweep to find all the places where this code is included or linked to.)
1 parent e85f93f commit a5cbb3d

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

ml_engine/online_prediction/predict.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
"""Examples of using the Cloud ML Engine's online prediction service."""
16+
"""Examples of using AI Platform's online prediction service."""
1717
import argparse
1818
import base64
1919
import json
@@ -29,7 +29,7 @@ def predict_json(project, model, instances, version=None):
2929
"""Send json data to a deployed model for prediction.
3030
3131
Args:
32-
project (str): project where the Cloud ML Engine Model is deployed.
32+
project (str): project where the AI Platform Model is deployed.
3333
model (str): model name.
3434
instances ([Mapping[str: Any]]): Keys should be the names of Tensors
3535
your deployed model expects as inputs. Values should be datatypes
@@ -40,7 +40,7 @@ def predict_json(project, model, instances, version=None):
4040
Mapping[str: any]: dictionary of prediction results defined by the
4141
model.
4242
"""
43-
# Create the ML Engine service object.
43+
# Create the AI Platform service object.
4444
# To authenticate set the environment variable
4545
# GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
4646
service = googleapiclient.discovery.build('ml', 'v1')
@@ -69,7 +69,7 @@ def predict_examples(project,
6969
"""Send protocol buffer data to a deployed model for prediction.
7070
7171
Args:
72-
project (str): project where the Cloud ML Engine Model is deployed.
72+
project (str): project where the AI Platform Model is deployed.
7373
model (str): model name.
7474
example_bytes_list ([str]): A list of bytestrings representing
7575
serialized tf.train.Example protocol buffers. The contents of this

ml_engine/online_prediction/scikit-xg-predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
"""Examples of using the Cloud ML Engine's online prediction service,
16+
"""Examples of using AI Platform's online prediction service,
1717
modified for scikit-learn and XGBoost."""
1818

1919
import googleapiclient.discovery
@@ -23,7 +23,7 @@
2323
def predict_json(project, model, instances, version=None):
2424
"""Send json data to a deployed model for prediction.
2525
Args:
26-
project (str): project where the Cloud ML Engine Model is deployed.
26+
project (str): project where the AI Platform Model is deployed.
2727
model (str): model name.
2828
instances ([[float]]): List of input instances, where each input
2929
instance is a list of floats.
@@ -32,7 +32,7 @@ def predict_json(project, model, instances, version=None):
3232
Mapping[str: any]: dictionary of prediction results defined by the
3333
model.
3434
"""
35-
# Create the ML Engine service object.
35+
# Create the AI Platform service object.
3636
# To authenticate set the environment variable
3737
# GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
3838
service = googleapiclient.discovery.build('ml', 'v1')

notebooks/tutorials/cloud-ml-engine/Training and prediction with scikit-learn.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
"source": [
77
"# Training and prediction with scikit-learn\n",
88
"\n",
9-
"This notebook demonstrates how to use Cloud Machine Learning Engine to train a simple classification model using `scikit-learn`, and then deploy the model to get predictions.\n",
9+
"This notebook demonstrates how to use AI Platform to train a simple classification model using `scikit-learn`, and then deploy the model to get predictions.\n",
1010
"\n",
1111
"You train the model to predict a person's income level based on the [Census Income data set](https://archive.ics.uci.edu/ml/datasets/Census+Income).\n",
1212
"\n",
1313
"Before you jump in, let’s cover some of the different tools you’ll be using:\n",
1414
"\n",
15-
"+ [Cloud Machine Learning Engine](https://cloud.google.com/ml-engine/) (Cloud ML Engine) is a managed service that enables you to easily build machine learning models that work on any type of data, of any size.\n",
15+
"+ [AI Platform](https://cloud.google.com/ml-engine/) is a managed service that enables you to easily build machine learning models that work on any type of data, of any size.\n",
1616
"\n",
1717
"+ [Cloud Storage](https://cloud.google.com/storage/) is a unified object storage for developers and enterprises, from live data serving to data analytics/ML to data archiving.\n",
1818
"\n",
@@ -27,7 +27,7 @@
2727
"\n",
2828
"### Enable the required APIs\n",
2929
"\n",
30-
"In order to use Cloud ML Engine, confirm that the required APIs are enabled:"
30+
"In order to use AI Platform, confirm that the required APIs are enabled:"
3131
]
3232
},
3333
{
@@ -152,7 +152,7 @@
152152
"+ Fits the model is against the training data\n",
153153
"+ Exports the model with the [Python `pickle` library](https://docs.python.org/3/library/pickle.html)\n",
154154
"\n",
155-
"The following model training code is not executed within this notebook. Instead, it is saved to a Python file and packaged as a Python module that runs on Cloud ML Engine after you submit the training job."
155+
"The following model training code is not executed within this notebook. Instead, it is saved to a Python file and packaged as a Python module that runs on AI Platform after you submit the training job."
156156
]
157157
},
158158
{
@@ -391,7 +391,7 @@
391391
"cell_type": "markdown",
392392
"metadata": {},
393393
"source": [
394-
"Once the model is successfully created and trained, you can serve it. A model can have different versions. In order to serve the model, create a model and version in Cloud ML Engine.\n",
394+
"Once the model is successfully created and trained, you can serve it. A model can have different versions. In order to serve the model, create a model and version in AI Platform.\n",
395395
"\n",
396396
"Define the model and version names:"
397397
]
@@ -410,7 +410,7 @@
410410
"cell_type": "markdown",
411411
"metadata": {},
412412
"source": [
413-
"Create the model in Cloud ML Engine:"
413+
"Create the model in AI Platform:"
414414
]
415415
},
416416
{
@@ -451,7 +451,7 @@
451451
"\n",
452452
"### Format data for prediction\n",
453453
"\n",
454-
"Before you send an online prediction request, you must format your test data to prepare it for use by the Cloud ML Engine prediction service. Make sure that the format of your input instances matches what your model expects.\n",
454+
"Before you send an online prediction request, you must format your test data to prepare it for use by the AI Platform prediction service. Make sure that the format of your input instances matches what your model expects.\n",
455455
"\n",
456456
"Create an `input.json` file with each input instance on a separate line. The following example uses ten data instances. Note that the format of input instances needs to match what your model expects. In this example, the Census model requires 14 features, so your input must be a matrix of shape (`num_instances, 14`)."
457457
]

0 commit comments

Comments
 (0)