Skip to content

Commit 27c5c18

Browse files
alefhsousaleahecole
authored andcommitted
fix problems with automl docs (#2501)
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.
1 parent eca1680 commit 27c5c18

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tables/automl/automl_tables_predict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ def batch_predict(project_id,
7272
client = automl.TablesClient(project=project_id, region=compute_region)
7373

7474
# Query model
75-
response = client.batch_predict(
76-
gcs_input_uris, gcs_output_uri, model_display_name=model_display_name
77-
)
75+
response = client.batch_predict(gcs_input_uris=gcs_input_uris,
76+
gcs_output_uri_prefix=gcs_output_uri,
77+
model_display_name=model_display_name)
7878
print("Making batch prediction... ")
7979
response.result()
8080
print("Batch prediction complete.\n{}".format(response.metadata))

0 commit comments

Comments
 (0)