Skip to content

Commit

Permalink
docs: Added eval_id comments to node.js samples (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
nayaknishant authored and pattishin committed Nov 22, 2022
1 parent e81d3e2 commit 14e8801
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_image_classification]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_image_object_detection]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
11 changes: 9 additions & 2 deletions ai-platform/snippets/get-model-evaluation-slice.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,16 @@ async function main(
) {
// [START aiplatform_get_model_evaluation_slice]
/**
* TODO(developer): Uncomment these variables before running the sample.\
(Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_tabular_classification]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
11 changes: 9 additions & 2 deletions ai-platform/snippets/get-model-evaluation-tabular-regression.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_tabular_regression]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
11 changes: 9 additions & 2 deletions ai-platform/snippets/get-model-evaluation-text-classification.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_text_classification]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_text_entity_extraction]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_text_sentiment_analysis]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_video_action_recognition]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_video_classification]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_get_model_evaluation_video_object_tracking]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down
11 changes: 9 additions & 2 deletions ai-platform/snippets/list-model-evaluation-slices.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,16 @@
async function main(modelId, evaluationId, project, location = 'us-central1') {
// [START aiplatform_list_model_evaluation_slices]
/**
* TODO(developer): Uncomment these variables before running the sample.\
* (Not necessary if passing values as arguments)
* TODO(developer): Uncomment these variables before running the sample
* (not necessary if passing values as arguments). To obtain evaluationId,
* instantiate the client and run the following the commands.
*/
// const parentName = `projects/${project}/locations/${location}/models/${modelId}`;
// const evalRequest = {
// parent: parentName
// };
// const [evalResponse] = await modelServiceClient.listModelEvaluations(evalRequest);
// console.log(evalResponse);

// const modelId = 'YOUR_MODEL_ID';
// const evaluationId = 'YOUR_EVALUATION_ID';
Expand Down

0 comments on commit 14e8801

Please sign in to comment.