Skip to content

Commit

Permalink
fix: Fix message to Json parse issue in Dataset class
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 599675216
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Jan 19, 2024
1 parent c9ea4f9 commit 066f32d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion google/cloud/aiplatform/datasets/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def export_data_for_custom_training(
saved_query_id,
annotation_schema_uri,
split,
)
)._pb
)

def update(
Expand Down
9 changes: 7 additions & 2 deletions tests/system/aiplatform/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,14 @@ def test_export_data_for_custom_training(self, staging_bucket):
)

# Ensure three output paths (training, validation and test) are provided
assert len(export_data_response["exported_files"]) == 3
assert len(export_data_response["exportedFiles"]) == 3
# Ensure data stats are calculated and correct
assert export_data_response["data_stats"]["training_data_items_count"] == 40
assert int(export_data_response["dataStats"]["trainingDataItemsCount"]) == 40
assert int(export_data_response["dataStats"]["validationDataItemsCount"]) == 5
assert int(export_data_response["dataStats"]["testDataItemsCount"]) == 5
assert int(export_data_response["dataStats"]["trainingAnnotationsCount"]) == 40
assert int(export_data_response["dataStats"]["validationAnnotationsCount"]) == 5
assert int(export_data_response["dataStats"]["testAnnotationsCount"]) == 5

def test_update_dataset(self):
"""Create a new dataset and use update() method to change its display_name, labels, and description.
Expand Down

0 comments on commit 066f32d

Please sign in to comment.