GeezerVison is showing github.com — fix: Fix aiplatform.init bug by replacing experiment_name with experi… · Russ76/python-aiplatform@c60773a
File treeExpand file treeCollapse file tree Open diff view settings samples/model-builder/experiment_tracking
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/autologging_with_auto_run_creation_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ def autologging_with_auto_run_creation_sample( | 25 | 25 | location: str, | 26 | 26 | ): | 27 | 27 | aiplatform.init( | 28 | | - experiment_name=experiment_name, | | 28 | + experiment=experiment_name, | 29 | 29 | project=project, | 30 | 30 | location=location, | 31 | 31 | experiment_tensorboard=experiment_tensorboard, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/autologging_with_auto_run_creation_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ def test_autologging_with_auto_run_creation_sample(mock_sdk_init, mock_autolog): | 27 | 27 | ) | 28 | 28 |
| 29 | 29 | mock_sdk_init.assert_called_with( | 30 | | - experiment_name=constants.EXPERIMENT_NAME, | | 30 | + experiment=constants.EXPERIMENT_NAME, | 31 | 31 | project=constants.PROJECT, | 32 | 32 | location=constants.LOCATION, | 33 | 33 | experiment_tensorboard=constants.TENSORBOARD_NAME, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/autologging_with_manual_run_creation_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ def autologging_with_manual_run_creation_sample( | 26 | 26 | location: str, | 27 | 27 | ): | 28 | 28 | aiplatform.init( | 29 | | - experiment_name=experiment_name, | | 29 | + experiment=experiment_name, | 30 | 30 | project=project, | 31 | 31 | location=location, | 32 | 32 | experiment_tensorboard=experiment_tensorboard, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/autologging_with_manual_run_creation_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -30,7 +30,7 @@ def test_autologging_with_manual_run_creation_sample( | 30 | 30 | ) | 31 | 31 |
| 32 | 32 | mock_sdk_init.assert_called_with( | 33 | | - experiment_name=constants.EXPERIMENT_NAME, | | 33 | + experiment=constants.EXPERIMENT_NAME, | 34 | 34 | project=constants.PROJECT, | 35 | 35 | location=constants.LOCATION, | 36 | 36 | experiment_tensorboard=constants.TENSORBOARD_NAME, | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/create_experiment_run_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -25,7 +25,7 @@ def create_experiment_run_sample( | 25 | 25 | project: str, | 26 | 26 | location: str, | 27 | 27 | ): | 28 | | - aiplatform.init(experiment_name=experiment_name, project=project, location=location) | | 28 | + aiplatform.init(experiment=experiment_name, project=project, location=location) | 29 | 29 |
| 30 | 30 | aiplatform.start_run(run=run_name, tensorboard=experiment_run_tensorboard) | 31 | 31 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/create_experiment_run_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,7 +27,7 @@ def test_create_experiment_run_sample(mock_sdk_init, mock_start_run): | 27 | 27 | ) | 28 | 28 |
| 29 | 29 | mock_sdk_init.assert_called_with( | 30 | | - experiment_name=constants.EXPERIMENT_NAME, | | 30 | + experiment=constants.EXPERIMENT_NAME, | 31 | 31 | project=constants.PROJECT, | 32 | 32 | location=constants.LOCATION, | 33 | 33 | ) | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/end_experiment_run_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ def end_experiment_run_sample( | 23 | 23 | project: str, | 24 | 24 | location: str, | 25 | 25 | ): | 26 | | - aiplatform.init(experiment_name=experiment_name, project=project, location=location) | | 26 | + aiplatform.init(experiment=experiment_name, project=project, location=location) | 27 | 27 |
| 28 | 28 | aiplatform.start_run(run=run_name, resume=True) | 29 | 29 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/end_experiment_run_sample_test.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -26,7 +26,7 @@ def test_end_experiment_run_sample(mock_sdk_init, mock_start_run, mock_end_run): | 26 | 26 | ) | 27 | 27 |
| 28 | 28 | mock_sdk_init.assert_called_with( | 29 | | - experiment_name=constants.EXPERIMENT_NAME, | | 29 | + experiment=constants.EXPERIMENT_NAME, | 30 | 30 | project=constants.PROJECT, | 31 | 31 | location=constants.LOCATION, | 32 | 32 | ) | |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/log_time_series_metrics_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -28,7 +28,7 @@ def log_time_series_metrics_sample( | 28 | 28 | project: str, | 29 | 29 | location: str, | 30 | 30 | ): | 31 | | - aiplatform.init(experiment_name=experiment_name, project=project, location=location) | | 31 | + aiplatform.init(experiment=experiment_name, project=project, location=location) | 32 | 32 |
| 33 | 33 | aiplatform.start_run(run_name=run_name, resume=True) | 34 | 34 |
| |
Collapse file Copy file name to clipboardExpand all lines: samples/model-builder/experiment_tracking/resume_experiment_run_sample.py +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,7 +23,7 @@ def resume_experiment_run_sample( | 23 | 23 | project: str, | 24 | 24 | location: str, | 25 | 25 | ): | 26 | | - aiplatform.init(experiment_name=experiment_name, project=project, location=location) | | 26 | + aiplatform.init(experiment=experiment_name, project=project, location=location) | 27 | 27 |
| 28 | 28 | aiplatform.start_run(run=run_name, resume=True) | 29 | 29 |
| |
|