Skip to content

Commit

Permalink
fix problems with automl docs
Browse files Browse the repository at this point in the history
Today when we try to use the function `batch_predict` follow the docs we receive and error saying: `the paramaters should be a pandas.Dataframe` it’s happens because the first parameter of the function `batch_predict` is a pandas.Dataframe. To solve this problem we need to use de named parameters of python.
  • Loading branch information
alefhsousa committed Oct 28, 2019
1 parent 0e89d13 commit c42a00b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tables/automl/automl_tables_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def batch_predict(project_id,
client = automl.TablesClient(project=project_id, region=compute_region)

# Query model
response = client.batch_predict(
gcs_input_uris, gcs_output_uri, model_display_name=model_display_name
)
response = client.batch_predict(gcs_input_uris=gcs_input_uris,
gcs_output_uri_prefix=gcs_output_uri,
model_display_name=model_display_name)
print("Making batch prediction... ")
response.result()
print("Batch prediction complete.\n{}".format(response.metadata))
Expand Down

0 comments on commit c42a00b

Please sign in to comment.