diff --git a/README.rst b/README.rst index c0bb3fd5b3..c5232b5b5b 100644 --- a/README.rst +++ b/README.rst @@ -316,18 +316,11 @@ You can also create a batch prediction job asynchronously by including the `sync Endpoints --------- -To get predictions from endpoints: - -.. code-block:: Python - - endpoint.predict(instances=[[6.7, 3.1, 4.7, 1.5], [4.6, 3.1, 1.5, 0.2]]) - - -To create an endpoint +To create an endpoint: .. code-block:: Python - endpoint = endpoint.create(display_name='my-endpoint') + endpoint = aiplatform.Endpoint.create(display_name='my-endpoint') To deploy a model to a created endpoint: @@ -342,6 +335,12 @@ To deploy a model to a created endpoint: accelerator_type='NVIDIA_TESLA_K80', accelerator_count=1) +To get predictions from endpoints: + +.. code-block:: Python + + endpoint.predict(instances=[[6.7, 3.1, 4.7, 1.5], [4.6, 3.1, 1.5, 0.2]]) + To undeploy models from an endpoint: .. code-block:: Python