Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. client = AutoMlClient()
  2. export_path = 'gs://{}/export/export_{}'.format(bucket, dataset)
  3. output_config = {"gcs_destination": {"output_uri_prefix": export_path}}
  4. dataset_name = client.dataset_path(project,
  5. compute_region,
  6. dataset)
  7. export_operation = client.export_data(dataset_name, output_config)
  8. logging.info('Waiting for the export to complete...')
  9. export_operation.result()
  10. logging.info('Downloading exported csv...')
  11. download_training_csv(bucket, 'export/export_{}/export.csv'.format(dataset), dataset_file_name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement