GeezerVison is showing github.com — fix: Added missing instances_format parameter to batch_prediction_job… · Russ76/python-aiplatform@82a2afc
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/create_batch_prediction_job_dedicated_resources_sample.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,6 +25,7 @@ def create_batch_prediction_job_dedicated_resources_sample( | 25 | 25 | job_display_name: str, | 26 | 26 | gcs_source: Union[str, Sequence[str]], | 27 | 27 | gcs_destination: str, | | 28 | + instances_format: str = "jsonl", | 28 | 29 | machine_type: str = "n1-standard-2", | 29 | 30 | accelerator_count: int = 1, | 30 | 31 | accelerator_type: Union[str, aiplatform_v1.AcceleratorType] = "NVIDIA_TESLA_K80", | @@ -40,6 +41,7 @@ def create_batch_prediction_job_dedicated_resources_sample( | 40 | 41 | job_display_name=job_display_name, | 41 | 42 | gcs_source=gcs_source, | 42 | 43 | gcs_destination_prefix=gcs_destination, | | 44 | + instances_format=instances_format, | 43 | 45 | machine_type=machine_type, | 44 | 46 | accelerator_count=accelerator_count, | 45 | 47 | accelerator_type=accelerator_type, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/create_batch_prediction_job_dedicated_resources_sample_test.py +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,6 +31,7 @@ def test_create_batch_prediction_job_sample( | 31 | 31 | job_display_name=constants.DISPLAY_NAME, | 32 | 32 | gcs_source=constants.GCS_SOURCES, | 33 | 33 | gcs_destination=constants.GCS_DESTINATION, | | 34 | + instances_format=constants.INSTANCES_FORMAT, | 34 | 35 | machine_type=constants.ACCELERATOR_TYPE, | 35 | 36 | accelerator_count=constants.ACCELERATOR_COUNT, | 36 | 37 | accelerator_type=constants.ACCELERATOR_TYPE, | @@ -46,6 +47,7 @@ def test_create_batch_prediction_job_sample( | 46 | 47 | job_display_name=constants.DISPLAY_NAME, | 47 | 48 | gcs_source=constants.GCS_SOURCES, | 48 | 49 | gcs_destination_prefix=constants.GCS_DESTINATION, | | 50 | + instances_format=constants.INSTANCES_FORMAT, | 49 | 51 | machine_type=constants.ACCELERATOR_TYPE, | 50 | 52 | accelerator_count=constants.ACCELERATOR_COUNT, | 51 | 53 | accelerator_type=constants.ACCELERATOR_TYPE, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/test_constants.py +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 52 | 52 | GCS_SOURCES = ["gs://bucket1/source1.jsonl", "gs://bucket7/source4.jsonl"] | 53 | 53 | BIGQUERY_SOURCE = "bq://bigquery-public-data.ml_datasets.iris" | 54 | 54 | GCS_DESTINATION = "gs://bucket3/output-dir/" | | 55 | +INSTANCES_FORMAT = "jsonl" | 55 | 56 |
| 56 | 57 | TRAINING_FRACTION_SPLIT = 0.7 | 57 | 58 | TEST_FRACTION_SPLIT = 0.15 | |
|