Skip to content

Commit

Permalink
chore: add '_sample' suffix to samples (#242)
Browse files Browse the repository at this point in the history
* chore: add '_sample' suffix to samples

Change-Id: If21d21ff97c30f45305b6365fa5ed10172557606

* chore: clean up tags

Change-Id: I193b2f5be0bfcd65681a66266c198fbc3f554347

* change tabular to tables

Change-Id: I4dafc2374eae85a53b47e9df3e6c1bcedb67b4f7

* change tables to tabular

Change-Id: I8619f42c659cdea9759727f8b2227a89b8aa6308

* change tables to tabular

Change-Id: I584c9ff75f771dd27b55c697f3b085290d1a970a
  • Loading branch information
aribray authored Dec 9, 2021
1 parent 4310826 commit 9033f27
Show file tree
Hide file tree
Showing 70 changed files with 140 additions and 140 deletions.
4 changes: 2 additions & 2 deletions ai-platform/snippets/cancel-batch-prediction-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(batchPredictionJobId, project, location = 'us-central1') {
// [START aiplatform_cancel_batch_prediction_job]
// [START aiplatform_cancel_batch_prediction_job_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -51,7 +51,7 @@ async function main(batchPredictionJobId, project, location = 'us-central1') {
}

cancelBatchPredictionJob();
// [END aiplatform_cancel_batch_prediction_job]
// [END aiplatform_cancel_batch_prediction_job_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/cancel-custom-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(customJobId, project, location = 'us-central1') {
// [START aiplatform_cancel_custom_job]
// [START aiplatform_cancel_custom_job_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
*/
Expand Down Expand Up @@ -50,7 +50,7 @@ async function main(customJobId, project, location = 'us-central1') {
console.log('Cancel custom job response:\n', response);
}
cancelCustomJob();
// [END aiplatform_cancel_custom_job]
// [END aiplatform_cancel_custom_job_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_text_classification]
// [START aiplatform_create_batch_prediction_job_text_classification_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -82,7 +82,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobTextClassification();
// [END aiplatform_create_batch_prediction_job_text_classification]
// [END aiplatform_create_batch_prediction_job_text_classification_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_text_entity_extraction]
// [START aiplatform_create_batch_prediction_job_text_entity_extraction_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -82,7 +82,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobTextEntityExtraction();
// [END aiplatform_create_batch_prediction_job_text_entity_extraction]
// [END aiplatform_create_batch_prediction_job_text_entity_extraction_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_text_sentiment_analysis]
// [START aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -82,7 +82,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobTextSentimentAnalysis();
// [END aiplatform_create_batch_prediction_job_text_sentiment_analysis]
// [END aiplatform_create_batch_prediction_job_text_sentiment_analysis_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_video_action_recognition]
// [START aiplatform_create_batch_prediction_job_video_action_recognition_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -95,7 +95,7 @@ function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobVideoActionRecognition();
// [END aiplatform_create_batch_prediction_job_video_action_recognition]
// [END aiplatform_create_batch_prediction_job_video_action_recognition_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_video_classification]
// [START aiplatform_create_batch_prediction_job_video_classification_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -97,7 +97,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobVideoClassification();
// [END aiplatform_create_batch_prediction_job_video_classification]
// [END aiplatform_create_batch_prediction_job_video_classification_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_batch_prediction_job_video_object_tracking]
// [START aiplatform_create_batch_prediction_job_video_object_tracking_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -93,7 +93,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createBatchPredictionJobVideoObjectTracking();
// [END aiplatform_create_batch_prediction_job_video_object_tracking]
// [END aiplatform_create_batch_prediction_job_video_object_tracking_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-custom-job.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_custom_job]
// [START aiplatform_create_custom_job_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -75,7 +75,7 @@ async function main(
console.log('Create custom job response:\n', JSON.stringify(response));
}
createCustomJob();
// [END aiplatform_create_custom_job]
// [END aiplatform_create_custom_job_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset-image.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(datasetDisplayName, project, location = 'us-central1') {
// [START aiplatform_create_dataset_image]
// [START aiplatform_create_dataset_image_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
console.log(`Labels : ${JSON.stringify(result.labels)}`);
}
createDatasetImage();
// [END aiplatform_create_dataset_image]
// [END aiplatform_create_dataset_image_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset-tabular-bigquery.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_dataset_tabular_bigquery]
// [START aiplatform_create_dataset_tabular_bigquery_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -97,7 +97,7 @@ async function main(
console.log(`\tMetadata : ${JSON.stringify(result.metadata)}`);
}
createDatasetTabularBigquery();
// [END aiplatform_create_dataset_tabular_bigquery]
// [END aiplatform_create_dataset_tabular_bigquery_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset-tabular-gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_dataset_tabular_gcs]
// [START aiplatform_create_dataset_tabular_gcs_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -97,7 +97,7 @@ async function main(
console.log(`\tMetadata : ${JSON.stringify(result.metadata)}`);
}
createDatasetTabularGcs();
// [END aiplatform_create_dataset_tabular_gcs]
// [END aiplatform_create_dataset_tabular_gcs_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset-text.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(datasetDisplayName, project, location = 'us-central1') {
// [START aiplatform_create_dataset_text]
// [START aiplatform_create_dataset_text_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
console.log(`Labels : ${JSON.stringify(result.labels)}`);
}
createDatasetText();
// [END aiplatform_create_dataset_text]
// [END aiplatform_create_dataset_text_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset-video.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(datasetDisplayName, project, location = 'us-central1') {
// [START aiplatform_create_dataset_video]
// [START aiplatform_create_dataset_video_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -68,7 +68,7 @@ async function main(datasetDisplayName, project, location = 'us-central1') {
console.log(`Labels : ${JSON.stringify(result.labels)}`);
}
createDatasetVideo();
// [END aiplatform_create_dataset_video]
// [END aiplatform_create_dataset_video_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_dataset]
// [START aiplatform_create_dataset_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -78,7 +78,7 @@ async function main(
console.log(`\tLabels : ${JSON.stringify(createDatasetResponse.labels)}`);
}
createDataset();
// [END aiplatform_create_dataset]
// [END aiplatform_create_dataset_sample]
}

process.on('unhandledRejection', err => {
Expand Down
4 changes: 2 additions & 2 deletions ai-platform/snippets/create-endpoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
'use strict';

async function main(endpointDisplayName, project, location = 'us-central1') {
// [START aiplatform_create_endpoint]
// [START aiplatform_create_endpoint_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -66,7 +66,7 @@ async function main(endpointDisplayName, project, location = 'us-central1') {
console.log(`\tUpdate time : ${JSON.stringify(result.updateTime)}`);
}
createEndpoint();
// [END aiplatform_create_endpoint]
// [END aiplatform_create_endpoint_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_image_classification]
// [START aiplatform_create_training_pipeline_image_classification_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -92,7 +92,7 @@ function main(
}

createTrainingPipelineImageClassification();
// [END aiplatform_create_training_pipeline_image_classification]
// [END aiplatform_create_training_pipeline_image_classification_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_image_object_detection]
// [START aiplatform_create_training_pipeline_image_object_detection_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -89,7 +89,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createTrainingPipelineImageObjectDetection();
// [END aiplatform_create_training_pipeline_image_object_detection]
// [END aiplatform_create_training_pipeline_image_object_detection_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_tables_classification]
// [START aiplatform_create_training_pipeline_tabular_classification_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -103,7 +103,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createTrainingPipelineTablesClassification();
// [END aiplatform_create_training_pipeline_tables_classification]
// [END aiplatform_create_training_pipeline_tabular_classification_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_tables_regression]
// [START aiplatform_create_training_pipeline_tabular_regression_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -128,7 +128,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createTrainingPipelineTablesRegression();
// [END aiplatform_create_training_pipeline_tables_regression]
// [END aiplatform_create_training_pipeline_tabular_regression_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_text_classification]
// [START aiplatform_create_training_pipeline_text_classification_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -84,7 +84,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createTrainingPipelineTextClassification();
// [END aiplatform_create_training_pipeline_text_classification]
// [END aiplatform_create_training_pipeline_text_classification_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ async function main(
project,
location = 'us-central1'
) {
// [START aiplatform_create_training_pipeline_text_entity_extraction]
// [START aiplatform_create_training_pipeline_text_entity_extraction_sample]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
Expand Down Expand Up @@ -82,7 +82,7 @@ async function main(
console.log(JSON.stringify(response, null, 2));
}
createTrainingPipelineTextEntityExtraction();
// [END aiplatform_create_training_pipeline_text_entity_extraction]
// [END aiplatform_create_training_pipeline_text_entity_extraction_sample]
}

process.on('unhandledRejection', err => {
Expand Down
Loading

0 comments on commit 9033f27

Please sign in to comment.