Skip to content

Commit

Permalink
chore: update prediction endpoint (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
dizcology authored Feb 16, 2021
1 parent 96ac976 commit 07499cc
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 24 deletions.
14 changes: 0 additions & 14 deletions .sample_configs/process_configs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,15 @@ 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:
Expand All @@ -144,7 +141,6 @@ explain_sample:
explain_tabular_sample:
gapic_module_child: aiplatform_v1beta1
namespace: null
api_endpoint: us-central1-prediction-aiplatform.googleapis.com
max_depth: 2
resource_name: endpoint
comments:
Expand Down Expand Up @@ -258,14 +254,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 @@ -275,11 +269,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 @@ -289,29 +281,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 @@ -320,7 +308,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 @@ -329,7 +316,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
2 changes: 1 addition & 1 deletion samples/snippets/explain_tabular_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def explain_tabular_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
2 changes: 1 addition & 1 deletion samples/snippets/predict_custom_trained_model_sample.py
Original file line number Diff line number Diff 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
2 changes: 1 addition & 1 deletion samples/snippets/predict_image_classification_sample.py
Original file line number Diff line number Diff 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
2 changes: 1 addition & 1 deletion samples/snippets/predict_image_object_detection_sample.py
Original file line number Diff line number Diff 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
2 changes: 1 addition & 1 deletion samples/snippets/predict_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def predict_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
2 changes: 1 addition & 1 deletion samples/snippets/predict_tabular_classification_sample.py
Original file line number Diff line number Diff 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
2 changes: 1 addition & 1 deletion samples/snippets/predict_tabular_regression_sample.py
Original file line number Diff line number Diff 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 number Diff line number Diff 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
2 changes: 1 addition & 1 deletion samples/snippets/predict_text_entity_extraction_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def predict_text_entity_extraction_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
2 changes: 1 addition & 1 deletion samples/snippets/predict_text_sentiment_analysis_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def predict_text_sentiment_analysis_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

0 comments on commit 07499cc

Please sign in to comment.