|
103 | 103 | _TEST_DATASET_NAME = "test-dataset-name"
|
104 | 104 |
|
105 | 105 | _TEST_MODEL_DISPLAY_NAME = "model-display-name"
|
| 106 | + |
106 | 107 | _TEST_LABELS = {"key": "value"}
|
107 | 108 | _TEST_MODEL_LABELS = {"model_key": "model_value"}
|
108 |
| -_TEST_TRAINING_FRACTION_SPLIT = 0.8 |
109 |
| -_TEST_VALIDATION_FRACTION_SPLIT = 0.1 |
110 |
| -_TEST_TEST_FRACTION_SPLIT = 0.1 |
111 |
| -_TEST_PREDEFINED_SPLIT_COLUMN_NAME = "split" |
112 | 109 |
|
113 |
| -_TEST_OUTPUT_PYTHON_PACKAGE_PATH = "gs://test/ouput/python/trainer.tar.gz" |
| 110 | +_TEST_PREDEFINED_SPLIT_COLUMN_NAME = "split" |
114 | 111 |
|
115 | 112 | _TEST_MODEL_NAME = "projects/my-project/locations/us-central1/models/12345"
|
116 | 113 |
|
@@ -261,18 +258,11 @@ def test_run_call_pipeline_service_create(
|
261 | 258 | if not sync:
|
262 | 259 | model_from_job.wait()
|
263 | 260 |
|
264 |
| - true_fraction_split = gca_training_pipeline.FractionSplit( |
265 |
| - training_fraction=_TEST_TRAINING_FRACTION_SPLIT, |
266 |
| - validation_fraction=_TEST_VALIDATION_FRACTION_SPLIT, |
267 |
| - test_fraction=_TEST_TEST_FRACTION_SPLIT, |
268 |
| - ) |
269 |
| - |
270 | 261 | true_managed_model = gca_model.Model(
|
271 | 262 | display_name=_TEST_MODEL_DISPLAY_NAME, labels=_TEST_MODEL_LABELS
|
272 | 263 | )
|
273 | 264 |
|
274 | 265 | true_input_data_config = gca_training_pipeline.InputDataConfig(
|
275 |
| - fraction_split=true_fraction_split, |
276 | 266 | predefined_split=gca_training_pipeline.PredefinedSplit(
|
277 | 267 | key=_TEST_PREDEFINED_SPLIT_COLUMN_NAME
|
278 | 268 | ),
|
@@ -348,19 +338,12 @@ def test_run_call_pipeline_if_no_model_display_name_nor_model_labels(
|
348 | 338 | if not sync:
|
349 | 339 | model_from_job.wait()
|
350 | 340 |
|
351 |
| - true_fraction_split = gca_training_pipeline.FractionSplit( |
352 |
| - training_fraction=_TEST_TRAINING_FRACTION_SPLIT, |
353 |
| - validation_fraction=_TEST_VALIDATION_FRACTION_SPLIT, |
354 |
| - test_fraction=_TEST_TEST_FRACTION_SPLIT, |
355 |
| - ) |
356 |
| - |
357 | 341 | # Test that if defaults to the job display name
|
358 | 342 | true_managed_model = gca_model.Model(
|
359 | 343 | display_name=_TEST_DISPLAY_NAME, labels=_TEST_LABELS,
|
360 | 344 | )
|
361 | 345 |
|
362 | 346 | true_input_data_config = gca_training_pipeline.InputDataConfig(
|
363 |
| - fraction_split=true_fraction_split, |
364 | 347 | dataset_id=mock_dataset_time_series.name,
|
365 | 348 | )
|
366 | 349 |
|
@@ -422,17 +405,10 @@ def test_run_call_pipeline_if_set_additional_experiments(
|
422 | 405 | if not sync:
|
423 | 406 | model_from_job.wait()
|
424 | 407 |
|
425 |
| - true_fraction_split = gca_training_pipeline.FractionSplit( |
426 |
| - training_fraction=_TEST_TRAINING_FRACTION_SPLIT, |
427 |
| - validation_fraction=_TEST_VALIDATION_FRACTION_SPLIT, |
428 |
| - test_fraction=_TEST_TEST_FRACTION_SPLIT, |
429 |
| - ) |
430 |
| - |
431 | 408 | # Test that if defaults to the job display name
|
432 | 409 | true_managed_model = gca_model.Model(display_name=_TEST_DISPLAY_NAME)
|
433 | 410 |
|
434 | 411 | true_input_data_config = gca_training_pipeline.InputDataConfig(
|
435 |
| - fraction_split=true_fraction_split, |
436 | 412 | dataset_id=mock_dataset_time_series.name,
|
437 | 413 | )
|
438 | 414 |
|
|
0 commit comments