Constructor
new AutoMlClient(optionsopt)
Construct an instance of AutoMlClient.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
<optional> |
The configuration object. See the subsequent parameters for more details. Properties
|
Members
(static) apiEndpoint
The DNS address for this API service - same as servicePath(), exists for compatibility reasons.
(static) port
The port for this API service.
(static) scopes
The scopes needed to make gRPC calls for every method defined in this service.
(static) servicePath
The DNS address for this API service.
Methods
annotationSpecPath(project, location, dataset, annotation_spec) → {string}
Return a fully-qualified annotationSpec resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
dataset |
string | |
annotation_spec |
string |
close()
Terminate the GRPC channel and close the client.
The client will no longer be usable and all future behavior is undefined.
columnSpecPath(project, location, dataset, table_spec, column_spec) → {string}
Return a fully-qualified columnSpec resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
dataset |
string | |
table_spec |
string | |
column_spec |
string |
createDataset(request, optionsopt) → {Promise}
Creates a dataset.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
createModel(request, optionsopt) → {Promise}
Creates a model. Returns a Model in the response field when it completes. When you create a model, several model evaluations are created for it: a global evaluation, and one evaluation for each annotation spec.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
datasetPath(project, location, dataset) → {string}
Return a fully-qualified dataset resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
dataset |
string |
deleteDataset(request, optionsopt) → {Promise}
Deletes a dataset and all of its contents.
Returns empty response in the
response field when it completes,
and delete_details in the
metadata field.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deleteModel(request, optionsopt) → {Promise}
Deletes a model.
Returns google.protobuf.Empty in the
response field when it completes,
and delete_details in the
metadata field.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
deployModel(request, optionsopt) → {Promise}
Deploys a model. If a model is already deployed, deploying it with the same parameters has no effect. Deploying with different parametrs (as e.g. changing
node_number) will reset the deployment state without pausing the model's availability.
Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage deployment automatically.
Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
exportData(request, optionsopt) → {Promise}
Exports dataset's data to the provided output location. Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
exportEvaluatedExamples(request, optionsopt) → {Promise}
Exports examples on which the model was evaluated (i.e. which were in the TEST set of the dataset the model was created from), together with their ground truth annotations and the annotations created (predicted) by the model. The examples, ground truth and predictions are exported in the state they were at the moment the model was evaluated.
This export is available only for 30 days since the model evaluation is created.
Currently only available for Tables.
Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
exportModel(request, optionsopt) → {Promise}
Exports a trained, "export-able", model to a user specified Google Cloud Storage location. A model is considered export-able if and only if it has an export format defined for it in
Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getAnnotationSpec(request, optionsopt) → {Promise}
Gets an annotation spec.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getColumnSpec(request, optionsopt) → {Promise}
Gets a column spec.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getDataset(request, optionsopt) → {Promise}
Gets a dataset.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getModel(request, optionsopt) → {Promise}
Gets a model.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getModelEvaluation(request, optionsopt) → {Promise}
Gets a model evaluation.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
getProjectId(callback)
Return the project ID used by this class.
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
function |
the callback to be called with the current project Id. |
getTableSpec(request, optionsopt) → {Promise}
Gets a table spec.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
importData(request, optionsopt) → {Promise}
Imports data into a dataset. For Tables this method can only be called on an empty Dataset.
For Tables:
- A schema_inference_version parameter must be explicitly set. Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
initialize() → {Promise}
Initialize the client. Performs asynchronous operations (such as authentication) and prepares the client. This function will be called automatically when any class method is called for the first time, but if you need to initialize it before calling an actual method, feel free to call initialize() directly.
You can await on this method if you want to make sure the client is initialized.
listColumnSpecs(request, optionsopt) → {Promise}
Lists column specs in a table spec.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listColumnSpecsAsync(request, optionsopt) → {Object}
Equivalent to listColumnSpecs, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listColumnSpecsStream(request, optionsopt) → {Stream}
Equivalent to listColumnSpecs, but returns a NodeJS Stream object.
This fetches the paged responses for listColumnSpecs continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listDatasets(request, optionsopt) → {Promise}
Lists datasets in a project.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listDatasetsAsync(request, optionsopt) → {Object}
Equivalent to listDatasets, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listDatasetsStream(request, optionsopt) → {Stream}
Equivalent to listDatasets, but returns a NodeJS Stream object.
This fetches the paged responses for listDatasets continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModelEvaluations(request, optionsopt) → {Promise}
Lists model evaluations.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModelEvaluationsAsync(request, optionsopt) → {Object}
Equivalent to listModelEvaluations, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModelEvaluationsStream(request, optionsopt) → {Stream}
Equivalent to listModelEvaluations, but returns a NodeJS Stream object.
This fetches the paged responses for listModelEvaluations continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModels(request, optionsopt) → {Promise}
Lists models.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModelsAsync(request, optionsopt) → {Object}
Equivalent to listModels, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listModelsStream(request, optionsopt) → {Stream}
Equivalent to listModels, but returns a NodeJS Stream object.
This fetches the paged responses for listModels continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTableSpecs(request, optionsopt) → {Promise}
Lists table specs in a dataset.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTableSpecsAsync(request, optionsopt) → {Object}
Equivalent to listTableSpecs, but returns an iterable object.
for-await-of syntax is used with the iterable to recursively get response element on-demand.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
listTableSpecsStream(request, optionsopt) → {Stream}
Equivalent to listTableSpecs, but returns a NodeJS Stream object.
This fetches the paged responses for listTableSpecs continuously and invokes the callback registered for 'data' event for each element in the responses.
The returned object has 'end' method when no more elements are required.
autoPaginate option will be ignored.
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||||||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
locationPath(project, location) → {string}
Return a fully-qualified location resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string |
matchAnnotationSpecFromAnnotationSpecName(annotationSpecName) → {string}
Parse the annotation_spec from AnnotationSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
annotationSpecName |
string |
A fully-qualified path representing AnnotationSpec resource. |
matchColumnSpecFromColumnSpecName(columnSpecName) → {string}
Parse the column_spec from ColumnSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
columnSpecName |
string |
A fully-qualified path representing ColumnSpec resource. |
matchDatasetFromAnnotationSpecName(annotationSpecName) → {string}
Parse the dataset from AnnotationSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
annotationSpecName |
string |
A fully-qualified path representing AnnotationSpec resource. |
matchDatasetFromColumnSpecName(columnSpecName) → {string}
Parse the dataset from ColumnSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
columnSpecName |
string |
A fully-qualified path representing ColumnSpec resource. |
matchDatasetFromDatasetName(datasetName) → {string}
Parse the dataset from Dataset resource.
Parameters:
| Name | Type | Description |
|---|---|---|
datasetName |
string |
A fully-qualified path representing Dataset resource. |
matchDatasetFromTableSpecName(tableSpecName) → {string}
Parse the dataset from TableSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
tableSpecName |
string |
A fully-qualified path representing TableSpec resource. |
matchLocationFromAnnotationSpecName(annotationSpecName) → {string}
Parse the location from AnnotationSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
annotationSpecName |
string |
A fully-qualified path representing AnnotationSpec resource. |
matchLocationFromColumnSpecName(columnSpecName) → {string}
Parse the location from ColumnSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
columnSpecName |
string |
A fully-qualified path representing ColumnSpec resource. |
matchLocationFromDatasetName(datasetName) → {string}
Parse the location from Dataset resource.
Parameters:
| Name | Type | Description |
|---|---|---|
datasetName |
string |
A fully-qualified path representing Dataset resource. |
matchLocationFromLocationName(locationName) → {string}
Parse the location from Location resource.
Parameters:
| Name | Type | Description |
|---|---|---|
locationName |
string |
A fully-qualified path representing Location resource. |
matchLocationFromModelEvaluationName(modelEvaluationName) → {string}
Parse the location from ModelEvaluation resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelEvaluationName |
string |
A fully-qualified path representing ModelEvaluation resource. |
matchLocationFromModelName(modelName) → {string}
Parse the location from Model resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelName |
string |
A fully-qualified path representing Model resource. |
matchLocationFromTableSpecName(tableSpecName) → {string}
Parse the location from TableSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
tableSpecName |
string |
A fully-qualified path representing TableSpec resource. |
matchModelEvaluationFromModelEvaluationName(modelEvaluationName) → {string}
Parse the model_evaluation from ModelEvaluation resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelEvaluationName |
string |
A fully-qualified path representing ModelEvaluation resource. |
matchModelFromModelEvaluationName(modelEvaluationName) → {string}
Parse the model from ModelEvaluation resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelEvaluationName |
string |
A fully-qualified path representing ModelEvaluation resource. |
matchModelFromModelName(modelName) → {string}
Parse the model from Model resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelName |
string |
A fully-qualified path representing Model resource. |
matchProjectFromAnnotationSpecName(annotationSpecName) → {string}
Parse the project from AnnotationSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
annotationSpecName |
string |
A fully-qualified path representing AnnotationSpec resource. |
matchProjectFromColumnSpecName(columnSpecName) → {string}
Parse the project from ColumnSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
columnSpecName |
string |
A fully-qualified path representing ColumnSpec resource. |
matchProjectFromDatasetName(datasetName) → {string}
Parse the project from Dataset resource.
Parameters:
| Name | Type | Description |
|---|---|---|
datasetName |
string |
A fully-qualified path representing Dataset resource. |
matchProjectFromLocationName(locationName) → {string}
Parse the project from Location resource.
Parameters:
| Name | Type | Description |
|---|---|---|
locationName |
string |
A fully-qualified path representing Location resource. |
matchProjectFromModelEvaluationName(modelEvaluationName) → {string}
Parse the project from ModelEvaluation resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelEvaluationName |
string |
A fully-qualified path representing ModelEvaluation resource. |
matchProjectFromModelName(modelName) → {string}
Parse the project from Model resource.
Parameters:
| Name | Type | Description |
|---|---|---|
modelName |
string |
A fully-qualified path representing Model resource. |
matchProjectFromTableSpecName(tableSpecName) → {string}
Parse the project from TableSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
tableSpecName |
string |
A fully-qualified path representing TableSpec resource. |
matchTableSpecFromColumnSpecName(columnSpecName) → {string}
Parse the table_spec from ColumnSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
columnSpecName |
string |
A fully-qualified path representing ColumnSpec resource. |
matchTableSpecFromTableSpecName(tableSpecName) → {string}
Parse the table_spec from TableSpec resource.
Parameters:
| Name | Type | Description |
|---|---|---|
tableSpecName |
string |
A fully-qualified path representing TableSpec resource. |
modelEvaluationPath(project, location, model, model_evaluation) → {string}
Return a fully-qualified modelEvaluation resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
model |
string | |
model_evaluation |
string |
modelPath(project, location, model) → {string}
Return a fully-qualified model resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
model |
string |
tableSpecPath(project, location, dataset, table_spec) → {string}
Return a fully-qualified tableSpec resource name string.
Parameters:
| Name | Type | Description |
|---|---|---|
project |
string | |
location |
string | |
dataset |
string | |
table_spec |
string |
undeployModel(request, optionsopt) → {Promise}
Undeploys a model. If the model is not deployed this method has no effect.
Only applicable for Text Classification, Image Object Detection and Tables; all other domains manage deployment automatically.
Returns an empty response in the response field when it completes.
Parameters:
| Name | Type | Attributes | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
|||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateColumnSpec(request, optionsopt) → {Promise}
Updates a column spec.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateDataset(request, optionsopt) → {Promise}
Updates a dataset.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |
updateTableSpec(request, optionsopt) → {Promise}
Updates a table spec.
Parameters:
| Name | Type | Attributes | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
request |
Object |
The request object that will be sent. Properties
|
||||||||||
options |
object |
<optional> |
Call options. See CallOptions for more details. |