Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Rename Cloud ML Engine to AI Platform #2105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 17, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions 8 ml_engine/online_prediction/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

"""Examples of using the Cloud ML Engine's online prediction service."""
"""Examples of using AI Platform's online prediction service."""
import argparse
import base64
import json
Expand All @@ -29,7 +29,7 @@ def predict_json(project, model, instances, version=None):
"""Send json data to a deployed model for prediction.

Args:
project (str): project where the Cloud ML Engine Model is deployed.
project (str): project where the AI Platform Model is deployed.
model (str): model name.
instances ([Mapping[str: Any]]): Keys should be the names of Tensors
your deployed model expects as inputs. Values should be datatypes
Expand All @@ -40,7 +40,7 @@ def predict_json(project, model, instances, version=None):
Mapping[str: any]: dictionary of prediction results defined by the
model.
"""
# Create the ML Engine service object.
# Create the AI Platform service object.
# To authenticate set the environment variable
# GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
service = googleapiclient.discovery.build('ml', 'v1')
Expand Down Expand Up @@ -69,7 +69,7 @@ def predict_examples(project,
"""Send protocol buffer data to a deployed model for prediction.

Args:
project (str): project where the Cloud ML Engine Model is deployed.
project (str): project where the AI Platform Model is deployed.
model (str): model name.
example_bytes_list ([str]): A list of bytestrings representing
serialized tf.train.Example protocol buffers. The contents of this
Expand Down
6 changes: 3 additions & 3 deletions 6 ml_engine/online_prediction/scikit-xg-predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

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

import googleapiclient.discovery
Expand All @@ -23,7 +23,7 @@
def predict_json(project, model, instances, version=None):
"""Send json data to a deployed model for prediction.
Args:
project (str): project where the Cloud ML Engine Model is deployed.
project (str): project where the AI Platform Model is deployed.
model (str): model name.
instances ([[float]]): List of input instances, where each input
instance is a list of floats.
Expand All @@ -32,7 +32,7 @@ def predict_json(project, model, instances, version=None):
Mapping[str: any]: dictionary of prediction results defined by the
model.
"""
# Create the ML Engine service object.
# Create the AI Platform service object.
# To authenticate set the environment variable
# GOOGLE_APPLICATION_CREDENTIALS=<path_to_service_account_file>
service = googleapiclient.discovery.build('ml', 'v1')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
"source": [
"# Training and prediction with scikit-learn\n",
"\n",
"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",
"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",
"\n",
"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",
"\n",
"Before you jump in, let’s cover some of the different tools you’ll be using:\n",
"\n",
"+ [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",
"+ [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",
"\n",
"+ [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",
"\n",
Expand All @@ -27,7 +27,7 @@
"\n",
"### Enable the required APIs\n",
"\n",
"In order to use Cloud ML Engine, confirm that the required APIs are enabled:"
"In order to use AI Platform, confirm that the required APIs are enabled:"
]
},
{
Expand Down Expand Up @@ -152,7 +152,7 @@
"+ Fits the model is against the training data\n",
"+ Exports the model with the [Python `pickle` library](https://docs.python.org/3/library/pickle.html)\n",
"\n",
"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."
"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."
]
},
{
Expand Down Expand Up @@ -391,7 +391,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"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",
"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",
"\n",
"Define the model and version names:"
]
Expand All @@ -410,7 +410,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Create the model in Cloud ML Engine:"
"Create the model in AI Platform:"
]
},
{
Expand Down Expand Up @@ -451,7 +451,7 @@
"\n",
"### Format data for prediction\n",
"\n",
"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",
"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",
"\n",
"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`)."
]
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.