Merged
Show file tree
Hide file tree
Changes from 1 commit
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Failed to load files.
Next Next commit
chore: update prediction endpoint
  • Loading branch information
@dizcology
dizcology committedFeb 11, 2021
commit 302ff979a29b2e86ca25521a775d257795cc455a
Original file line numberDiff line numberDiff line change
Expand Up@@ -120,25 +120,21 @@ deploy_model_sample:
skip:
- explanation_spec
explain_custom_image_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
explain_custom_tabular_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
comments:
approximation_error: This is the approximation error.
attributions: Feature attributions.
explain_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
comments:
approximation_error: This is the approximation error.
attributions: Feature attributions.
explain_tabular_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 2
resource_name: endpoint
comments:
Expand DownExpand Up@@ -250,14 +246,12 @@ list_models_sample: {}
list_specialist_pools_sample: {}
list_training_pipelines_sample: {}
predict_custom_trained_model_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
comments:
predictions: The predictions are a google.protobuf.Value representation of the
model's predictions.
predict_image_classification_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
schema_types:
Expand All@@ -267,11 +261,9 @@ predict_image_classification_sample:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/classification.yaml
for the format of the predictions.
predict_image_file_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
predict_image_object_detection_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
schema_types:
Expand All@@ -281,29 +273,25 @@ predict_image_object_detection_sample:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/image_object_detection.yaml
for the format of the predictions.
predict_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
region_tags:
- aiplatform_predict_sample
- aiplatform_predict_tutorial
predict_tabular_classification_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
comments:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_classification.yaml
for the format of the predictions.
predict_tabular_forecasting_sample: {}
predict_tabular_regression_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
comments:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/tables_regression.yaml
for the format of the predictions.
predict_text_classification_single_label_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
schema_types:
Expand All@@ -312,7 +300,6 @@ predict_text_classification_single_label_sample:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_classification.yaml
for the format of the predictions.
predict_text_entity_extraction_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
schema_types:
Expand All@@ -321,7 +308,6 @@ predict_text_entity_extraction_sample:
predictions: See gs://google-cloud-aiplatform/schema/predict/prediction/text_extraction.yaml
for the format of the predictions.
predict_text_sentiment_analysis_sample:
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 1
resource_name: endpoint
schema_types:
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,7 @@ def predict_custom_trained_model_sample(
endpoint_id: str,
instance_dict: Dict,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ def predict_image_classification_sample(
endpoint_id: str,
filename: str,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ def predict_image_object_detection_sample(
endpoint_id: str,
filename: str,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,7 @@ def predict_tabular_classification_sample(
endpoint_id: str,
instance_dict: Dict,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,7 +25,7 @@ def predict_tabular_regression_sample(
endpoint_id: str,
instance_dict: Dict,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down
Original file line numberDiff line numberDiff line change
Expand Up@@ -24,7 +24,7 @@ def predict_text_classification_single_label_sample(
endpoint_id: str,
content: str,
location: str = "us-central1",
api_endpoint: str = "us-central1-prediction-aiplatform.googleapis.com",
api_endpoint: str = "us-central1-aiplatform.googleapis.com",
):
# The AI Platform services require regional API endpoints.
client_options = {"api_endpoint": api_endpoint}
Expand Down