|
6 | 6 | "source": [
|
7 | 7 | "# Training and prediction with scikit-learn\n",
|
8 | 8 | "\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", |
10 | 10 | "\n",
|
11 | 11 | "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",
|
12 | 12 | "\n",
|
13 | 13 | "Before you jump in, let’s cover some of the different tools you’ll be using:\n",
|
14 | 14 | "\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", |
16 | 16 | "\n",
|
17 | 17 | "+ [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",
|
18 | 18 | "\n",
|
|
27 | 27 | "\n",
|
28 | 28 | "### Enable the required APIs\n",
|
29 | 29 | "\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:" |
31 | 31 | ]
|
32 | 32 | },
|
33 | 33 | {
|
|
152 | 152 | "+ Fits the model is against the training data\n",
|
153 | 153 | "+ Exports the model with the [Python `pickle` library](https://docs.python.org/3/library/pickle.html)\n",
|
154 | 154 | "\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." |
156 | 156 | ]
|
157 | 157 | },
|
158 | 158 | {
|
|
391 | 391 | "cell_type": "markdown",
|
392 | 392 | "metadata": {},
|
393 | 393 | "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", |
395 | 395 | "\n",
|
396 | 396 | "Define the model and version names:"
|
397 | 397 | ]
|
|
410 | 410 | "cell_type": "markdown",
|
411 | 411 | "metadata": {},
|
412 | 412 | "source": [
|
413 |
| - "Create the model in Cloud ML Engine:" |
| 413 | + "Create the model in AI Platform:" |
414 | 414 | ]
|
415 | 415 | },
|
416 | 416 | {
|
|
451 | 451 | "\n",
|
452 | 452 | "### Format data for prediction\n",
|
453 | 453 | "\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", |
455 | 455 | "\n",
|
456 | 456 | "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`)."
|
457 | 457 | ]
|
|
0 commit comments